mirror of
https://github.com/bitwarden/web
synced 2025-12-15 07:43:16 +00:00
update key and verify email notification
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
angular
|
||||
.module('bit.global')
|
||||
|
||||
.controller('mainController', function ($scope, $state, authService, appSettings, toastr, $window, $document) {
|
||||
.controller('mainController', function ($scope, $state, authService, appSettings, toastr, $window, $document,
|
||||
cryptoService, $uibModal) {
|
||||
var vm = this;
|
||||
vm.bodyClass = '';
|
||||
vm.usingControlSidebar = vm.openControlSidebar = false;
|
||||
@@ -30,6 +31,7 @@ angular
|
||||
});
|
||||
|
||||
$scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
|
||||
vm.usingEncKey = !!cryptoService.getEncKey();
|
||||
vm.searchVaultText = null;
|
||||
|
||||
if (toState.data.bodyClass) {
|
||||
@@ -68,6 +70,18 @@ angular
|
||||
$scope.$broadcast('organizationGroupsAdd');
|
||||
};
|
||||
|
||||
$scope.updateKey = function () {
|
||||
$uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: 'app/settings/views/settingsUpdateKey.html',
|
||||
controller: 'settingsUpdateKeyController'
|
||||
});
|
||||
};
|
||||
|
||||
$scope.verifyEmail = function () {
|
||||
// TODO: send email api
|
||||
};
|
||||
|
||||
// Append dropdown menu somewhere else
|
||||
var bodyScrollbarWidth,
|
||||
appendedDropdownMenu,
|
||||
|
||||
Reference in New Issue
Block a user