1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00
Files
browser/src/app/global/premiumRequiredController.js
2017-07-07 09:11:45 -04:00

18 lines
553 B
JavaScript

angular
.module('bit.global')
.controller('premiumRequiredController', function ($scope, $state, $uibModalInstance, $analytics, $uibModalStack) {
$analytics.eventTrack('premiumRequiredController', { category: 'Modal' });
$scope.go = function () {
$analytics.eventTrack('Get Premium');
$state.go('backend.user.settingsPremium').then(function () {
$scope.close();
});
};
$scope.close = function () {
$uibModalStack.dismissAll();
};
});