mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-03 08:05:33 +00:00
(js) Improve addressbook renaming
The AddressBook instance to list the cards is now the same as the one from the list of addressbooks. Therefore, when renaming an addressbook, the addressbook name in the list is automatically updated.
This commit is contained in:
1 parent
dc3e42fd62
commit
cc5cc30c24
4 files changed
+23
-14
No files matched your search
@@ -249,10 +249,13 @@
|
||||
vm.close = close;
|
||||
|
||||
function saveProperties() {
|
||||
vm.addressbook.$save();
|
||||
// Refresh list instance
|
||||
srcAddressBook.init(vm.addressbook.$omit());
|
||||
$mdDialog.hide();
|
||||
vm.addressbook.$save().then(function() {
|
||||
// Refresh list instance
|
||||
srcAddressBook.init(vm.addressbook.$omit());
|
||||
$mdDialog.hide();
|
||||
}, function() {
|
||||
// TODO handle error
|
||||
});
|
||||
}
|
||||
|
||||
function close() {
|
||||
|
||||
Reference in new issue
Block a user