1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-13 15:06:51 +01:00
bitwarden-browser/src/app/global/premiumRequiredController.js

18 lines
573 B
JavaScript
Raw Normal View History

2017-07-06 22:15:28 +02:00
angular
.module('bit.global')
2017-07-07 15:11:45 +02:00
.controller('premiumRequiredController', function ($scope, $state, $uibModalInstance, $analytics, $uibModalStack) {
2017-07-06 22:15:28 +02:00
$analytics.eventTrack('premiumRequiredController', { category: 'Modal' });
$scope.go = function () {
$analytics.eventTrack('Get Premium');
$state.go('backend.user.settingsPremium').then(function () {
2017-07-07 20:07:30 +02:00
$uibModalStack.dismissAll();
2017-07-06 22:15:28 +02:00
});
};
$scope.close = function () {
2017-07-07 20:07:30 +02:00
$uibModalInstance.dismiss('close');
2017-07-06 22:15:28 +02:00
};
});