mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
alerts and redirects for settings
This commit is contained in:
@@ -61,7 +61,6 @@ angular
|
||||
};
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
var confirmed = true;
|
||||
if ($scope.site.password) {
|
||||
SweetAlert.swal({
|
||||
title: 'Warning',
|
||||
@@ -70,8 +69,8 @@ angular
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Yes',
|
||||
cancelButtonText: 'No'
|
||||
}, function (confirm) {
|
||||
if (confirm) {
|
||||
}, function (confirmed) {
|
||||
if (confirmed) {
|
||||
goPasswordGenerator();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user