1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Validation adjustments.

This commit is contained in:
Kyle Spearrin
2016-09-22 13:03:28 -04:00
parent 3d7b32f359
commit eef4d6f48e
11 changed files with 30 additions and 18 deletions

View File

@@ -32,11 +32,11 @@ angular
$scope.savePromise = null;
$scope.save = function (model) {
if (!model.name) {
toastr.error('Name is required.');
toastr.error('Name is required.', 'Errors have occurred');
return;
}
if (!model.password) {
toastr.error('Password is required.');
toastr.error('Password is required.', 'Errors have occurred');
return;
}