mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
logout confirmation
This commit is contained in:
@@ -9,9 +9,20 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.logOut = function () {
|
$scope.logOut = function () {
|
||||||
|
SweetAlert.swal({
|
||||||
|
title: 'Log out',
|
||||||
|
text: 'Are you sure you want to log out?',
|
||||||
|
type: 'warning',
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: 'Yes',
|
||||||
|
cancelButtonText: 'Cancel'
|
||||||
|
}, function (confirmed) {
|
||||||
|
if (confirmed) {
|
||||||
loginService.logOut(function () {
|
loginService.logOut(function () {
|
||||||
$state.go('login');
|
$state.go('login');
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.changePassword = function () {
|
$scope.changePassword = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user