From a2916418ac9b103aa3d63478c3d295dc3b6b57c5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 12 Sep 2016 22:40:32 -0400 Subject: [PATCH] close add/edit pages after save --- src/popup/app/vault/vaultAddSiteController.js | 1 + src/popup/app/vault/vaultEditSiteController.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/popup/app/vault/vaultAddSiteController.js b/src/popup/app/vault/vaultAddSiteController.js index 9f7527901c..0945535765 100644 --- a/src/popup/app/vault/vaultAddSiteController.js +++ b/src/popup/app/vault/vaultAddSiteController.js @@ -43,6 +43,7 @@ }).then(function (site) { return saveSite(site).then(function (site) { toastr.success('Added site'); + $scope.close(); }); }); }; diff --git a/src/popup/app/vault/vaultEditSiteController.js b/src/popup/app/vault/vaultEditSiteController.js index 3aae81a18f..09c39d2276 100644 --- a/src/popup/app/vault/vaultEditSiteController.js +++ b/src/popup/app/vault/vaultEditSiteController.js @@ -48,6 +48,7 @@ angular }).then(function (site) { return saveSite(site).then(function (site) { toastr.success('Edited site'); + $scope.close(); }); }); };