Skip to content

Commit

Permalink
fix(addressbook(js)): unselect current card on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Mar 21, 2022
1 parent 896fe27 commit 547d26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UI/WebServerResources/js/Contacts/CardController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 547d26a

Please sign in to comment.