mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Added "copy to" action in menu's for #1559
This commit is contained in:
parent
0aa48a8dd4
commit
53a6f04f18
44 changed files with 77 additions and 14 deletions
|
|
@ -331,6 +331,7 @@ export class MailMessageList extends AbstractViewRight {
|
|||
spamCommand: canBeMovedHelper,
|
||||
notSpamCommand: canBeMovedHelper,
|
||||
moveCommand: canBeMovedHelper,
|
||||
copyCommand: canBeMovedHelper
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -415,18 +416,26 @@ export class MailMessageList extends AbstractViewRight {
|
|||
moveMessagesToFolderType(FolderType.Inbox);
|
||||
}
|
||||
|
||||
moveCommand(vm, event) {
|
||||
moveOrCopy(vm, event, mode) {
|
||||
if (canBeMovedHelper()) {
|
||||
if (vm && event?.preventDefault) {
|
||||
stopEvent(event);
|
||||
}
|
||||
|
||||
let b = moveAction();
|
||||
AppUserStore.focusedState(b ? ScopeMessageList : ScopeFolderList);
|
||||
moveAction(!b);
|
||||
let i = moveAction();
|
||||
AppUserStore.focusedState(i ? ScopeMessageList : ScopeFolderList);
|
||||
moveAction(i ? 0 : mode);
|
||||
}
|
||||
}
|
||||
|
||||
moveCommand(vm, event) {
|
||||
this.moveOrCopy(vm, event, 1);
|
||||
}
|
||||
|
||||
copyCommand(vm, event) {
|
||||
this.moveOrCopy(vm, event, 2);
|
||||
}
|
||||
|
||||
composeClick() {
|
||||
showMessageComposer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue