1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

UI adjustments for premium adverts

This commit is contained in:
Kyle Spearrin
2017-07-07 09:11:45 -04:00
parent ed13644a02
commit b380d723b7
9 changed files with 68 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
.module('bit.vault')
.controller('vaultAddLoginController', function ($scope, apiService, $uibModalInstance, cryptoService, cipherService,
passwordService, selectedFolder, $analytics, checkedFavorite, $rootScope, authService) {
passwordService, selectedFolder, $analytics, checkedFavorite, $rootScope, authService, $uibModal) {
$analytics.eventTrack('vaultAddLoginController', { category: 'Modal' });
$scope.folders = $rootScope.vaultFolders;
$scope.login = {
@@ -61,4 +61,12 @@
$scope.close = function () {
$uibModalInstance.dismiss('close');
};
$scope.showPremium = function () {
$uibModal.open({
animation: true,
templateUrl: 'app/views/premiumRequired.html',
controller: 'premiumRequiredController'
});
};
});