mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-08 10:13:40 +00:00
fix(addressbook(js)): load selected cards prior to display mail editor
This commit is contained in:
1 parent
9c493e004b
commit
c6d6dc3e66
2 files changed
+23
-3
No files matched your search
@@ -850,8 +850,10 @@
|
||||
* @param {promise} futureHeadersData - a promise of the metadata of some cards
|
||||
*/
|
||||
AddressBook.prototype.$unwrapHeaders = function(futureHeadersData) {
|
||||
var _this = this;
|
||||
var _this = this,
|
||||
deferred = AddressBook.$q.defer();
|
||||
|
||||
this.$futureHeadersData = deferred.promise;
|
||||
futureHeadersData.then(function(data) {
|
||||
AddressBook.$timeout(function() {
|
||||
var headers, j;
|
||||
@@ -867,8 +869,13 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
deferred.resolve(_this.$cards);
|
||||
});
|
||||
}, function() {
|
||||
deferred.reject();
|
||||
});
|
||||
|
||||
return this.$futureHeadersData;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user