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

Commit

Permalink
fix(Felamimail): wait until finished set to, cc and bcc in recipientGrid
Browse files Browse the repository at this point in the history
* checkStates overwrite to, cc, bcc data
  • Loading branch information
Christian Feitl committed Apr 24, 2023
1 parent 59736ac commit 1511790
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tine20/Felamimail/js/MessageEditDialog.js
Expand Up @@ -710,6 +710,9 @@ Tine.Felamimail.MessageEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
},

checkStates: function() {
if (this.recipientGrid.initialLoad) {
return _.delay(_.bind(this.checkStates, this), 250);
}
Tine.Felamimail.MessageEditDialog.superclass.checkStates.apply(this, arguments);
if (this.autoSave && _.keys(this.record.getChanges()).length) {
this.trottledsaveAsDraft();
Expand Down
2 changes: 2 additions & 0 deletions tine20/Felamimail/js/RecipientGrid.js
Expand Up @@ -129,6 +129,7 @@ Tine.Felamimail.RecipientGrid = Ext.extend(Ext.grid.EditorGridPanel, {
* @private
*/
initComponent: function() {
this.initialLoad = true;
this.initStore();
this.initColumnModel();
this.initActions();
Expand Down Expand Up @@ -233,6 +234,7 @@ Tine.Felamimail.RecipientGrid = Ext.extend(Ext.grid.EditorGridPanel, {
await this.initRecord().then(() => {
this.syncRecipientsToStore(['to', 'cc', 'bcc'], this.record);
})
this.initialLoad = false;

this.store.on('update', this.onUpdateStore, this);
this.store.on('add', this.onAddStore, this);
Expand Down

0 comments on commit 1511790

Please sign in to comment.