1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

added q promise library. moving cipher service functions out into application services and domain models.

This commit is contained in:
Kyle Spearrin
2016-09-15 00:09:48 -04:00
parent 2c44bd5cc8
commit 16a59f8d09
8 changed files with 121 additions and 77 deletions

View File

@@ -48,8 +48,6 @@
$scope.save = function (model) {
$scope.savePromise = cipherService.encryptSite(model).then(function (siteModel) {
var site = new Site(siteModel, true);
return site;
}).then(function (site) {
return saveSite(site).then(function (site) {
toastr.success('Added site');
$scope.close();