mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
logout confirmation
This commit is contained in:
parent
5badea2d9d
commit
68b16ea565
@ -9,8 +9,19 @@
|
||||
};
|
||||
|
||||
$scope.logOut = function () {
|
||||
loginService.logOut(function () {
|
||||
$state.go('login');
|
||||
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 () {
|
||||
$state.go('login');
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user