From 547d26af1979eff68573afa6c01b5ad9195a0730 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 21 Mar 2022 09:22:52 -0400 Subject: [PATCH] fix(addressbook(js)): unselect current card on delete --- UI/WebServerResources/js/Contacts/CardController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/WebServerResources/js/Contacts/CardController.js b/UI/WebServerResources/js/Contacts/CardController.js index 0380300fd..f4241251c 100644 --- a/UI/WebServerResources/js/Contacts/CardController.js +++ b/UI/WebServerResources/js/Contacts/CardController.js @@ -196,6 +196,7 @@ AddressBook.selectedFolder.$deleteCards([card]) .then(function() { close(); + $state.go('app.addressbook'); }, function(data, status) { Dialog.alert(l('Warning'), l('An error occured while deleting the card "%{0}".', card.$fullname()));