mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-12 14:56:58 +01:00
18 lines
573 B
JavaScript
18 lines
573 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 () {
|
|
$uibModalStack.dismissAll();
|
|
});
|
|
};
|
|
|
|
$scope.close = function () {
|
|
$uibModalInstance.dismiss('close');
|
|
};
|
|
});
|