mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 07:47:12 +00:00
(js) Improve Card initialization
This commit is contained in:
1 parent
9dd5dc4c47
commit
cb03a1d97e
1 file changed
+3
-1
@@ -471,7 +471,9 @@
|
||||
});
|
||||
if (_this.birthday) {
|
||||
_this.birthday = new Date(_this.birthday * 1000);
|
||||
_this.$birthday = Card.$Preferences.$mdDateLocaleProvider.formatDate(_this.birthday);
|
||||
Card.$Preferences.ready().then(function() {
|
||||
_this.$birthday = Card.$Preferences.$mdDateLocaleProvider.formatDate(_this.birthday);
|
||||
});
|
||||
}
|
||||
// Mark card as loaded
|
||||
_this.$loaded = Card.STATUS.LOADED;
|
||||
|
||||
Reference in new issue
Block a user