mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 17:57:38 +00:00
(fix) Resolve addressbook before rendering view
This commit is contained in:
@@ -420,10 +420,8 @@
|
||||
AddressBook.prototype.$unwrap = function(futureAddressBookData) {
|
||||
var _this = this;
|
||||
|
||||
// Expose the promise
|
||||
this.$futureAddressBookData = futureAddressBookData;
|
||||
// Resolve the promise
|
||||
this.$futureAddressBookData.then(function(data) {
|
||||
// Expose and sesolve the promise
|
||||
this.$futureAddressBookData = futureAddressBookData.then(function(data) {
|
||||
return AddressBook.$timeout(function() {
|
||||
// Extend AddressBook instance from data of addressbooks list.
|
||||
// Will inherit attributes such as isEditable and isRemote.
|
||||
|
||||
Reference in New Issue
Block a user