1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

premium required messages

This commit is contained in:
Kyle Spearrin
2017-07-06 16:15:28 -04:00
parent 8df16f28e7
commit dfd791ecf9
9 changed files with 119 additions and 30 deletions

View File

@@ -0,0 +1,17 @@
angular
.module('bit.global')
.controller('premiumRequiredController', function ($scope, $state, $uibModalInstance, $analytics) {
$analytics.eventTrack('premiumRequiredController', { category: 'Modal' });
$scope.go = function () {
$analytics.eventTrack('Get Premium');
$state.go('backend.user.settingsPremium').then(function () {
$scope.close();
});
};
$scope.close = function () {
$uibModalInstance.dismiss('close');
};
});