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

Commit

Permalink
fix(Felamimail/Spam): remove toolbar in trash folder
Browse files Browse the repository at this point in the history
Change-Id: Ibf2ad8e79115c0236d87ecd44a459e30e110840b
Reviewed-on: http://gerrit.tine20.com/customers/18079
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
  • Loading branch information
ccheng-dev authored and pschuele committed Sep 30, 2020
1 parent daeb3ce commit 1b07c47
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tine20/Felamimail/js/MailDetailsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,15 @@ Ext.extend(Tine.Felamimail.MailDetailsPanel, Ext.Panel, {
}

if(record.get('is_spam_suspicions')) {
this.spamToolbar.show();
var account = Tine.Tinebase.appMgr.get('Felamimail').getAccountStore().getById(record.get('account_id'));
var folder = this.app.getFolderStore().getById(record.get('folder_id'));

//remove toolbar if the message is in trash
if(folder.get('globalname') === account.get('trash_folder')) {
this.spamToolbar.hide();
} else {
this.spamToolbar.show();
}
} else {
this.spamToolbar.hide();
}
Expand Down

0 comments on commit 1b07c47

Please sign in to comment.