Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail): empty account tree
Browse files Browse the repository at this point in the history
Change-Id: I74c7e4c49a006468635947a0f1c6d1fd927d6c54
Reviewed-on: http://gerrit.tine20.com/customers/14083
Reviewed-by: Cornelius Weiss <c.weiss@metaways.de>
Tested-by: Cornelius Weiss <c.weiss@metaways.de>
  • Loading branch information
corneliusweiss committed Sep 17, 2019
1 parent b512142 commit 6df8adf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tine20/Felamimail/js/TreePanel.js
Expand Up @@ -206,6 +206,12 @@ Ext.extend(Tine.Felamimail.TreePanel, Ext.tree.TreePanel, {
initAccounts: function() {
this.accountStore = this.app.getAccountStore();
this.accountStore.each(this.addAccount, this);

this.accountStore.on('load', function(store, records) {
this.root.removeAll();
_.map(records, _.bind(this.addAccount, this));
this.selectInbox();
}, this);
this.accountStore.on('add', function(store, records) {_.map(records, _.bind(this.addAccount, this)); }, this);
this.accountStore.on('update', this.onAccountUpdate, this);
this.accountStore.on('remove', this.deleteAccount, this);
Expand Down

0 comments on commit 6df8adf

Please sign in to comment.