1
0
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:
Kyle Spearrin
2016-09-20 11:38:43 -04:00
parent 5fef6837b7
commit 5badea2d9d
6 changed files with 65 additions and 41 deletions

View File

@@ -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();
}
});