1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 18:43:25 +00:00

password hint

This commit is contained in:
Kyle Spearrin
2016-09-20 17:47:21 -04:00
parent 797a18b46a
commit 0219068bb6
14 changed files with 115 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
angular
.module('bit.services')
.factory('validationService', function (SweetAlert) {
.factory('validationService', function (toastr) {
var _service = {};
_service.showError = function (data) {
@@ -32,13 +32,7 @@
}
if (errors.length) {
SweetAlert.swal({
title: 'Error',
text: errors[0],
type: 'error',
showCancelButton: false,
confirmButtonText: 'Ok'
});
toastr.error(errors[0], 'Errors have occurred');
}
return errors;