mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 19:08:50 +03:00
Resolve #2095
This commit is contained in:
parent
02e059c360
commit
45b4df3912
1 changed files with 3 additions and 3 deletions
|
|
@ -94,8 +94,6 @@ export class MailMessageList extends AbstractViewRight {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
this.allowDangerousActions = SettingsCapa('DangerousActions');
|
||||
|
||||
this.messageList = MessagelistUserStore;
|
||||
this.archiveAllowed = MessagelistUserStore.archiveAllowed;
|
||||
this.canMarkAsSpam = MessagelistUserStore.canMarkAsSpam;
|
||||
|
|
@ -148,6 +146,8 @@ export class MailMessageList extends AbstractViewRight {
|
|||
write: value => sLastSearchValue = value
|
||||
},
|
||||
|
||||
allowDangerousActions: () => SettingsCapa('DangerousActions') || MessagelistUserStore.isTrashFolder(),
|
||||
|
||||
isIncompleteChecked: () => {
|
||||
const c = MessagelistUserStore.listChecked().length;
|
||||
return c && MessagelistUserStore().length > c;
|
||||
|
|
@ -360,7 +360,7 @@ export class MailMessageList extends AbstractViewRight {
|
|||
}
|
||||
|
||||
clear() {
|
||||
SettingsCapa('DangerousActions')
|
||||
this.allowDangerousActions()
|
||||
&& showScreenPopup(FolderClearPopupView, [FolderUserStore.currentFolder()]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue