mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59: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
|
|
@ -240,6 +240,7 @@ export class MailMessageView extends AbstractViewRight {
|
|||
decorateKoCommands(this, {
|
||||
editCommand: self => self.messageVisible(),
|
||||
moveCommand: self => self.messageVisible(),
|
||||
copyCommand: self => self.messageVisible(),
|
||||
goUpCommand: self => !self.messageListOrViewLoading(),
|
||||
goDownCommand: self => !self.messageListOrViewLoading()
|
||||
});
|
||||
|
|
@ -257,13 +258,21 @@ export class MailMessageView extends AbstractViewRight {
|
|||
currentMessage() && showMessageComposer([ComposeType.Draft, currentMessage()]);
|
||||
}
|
||||
|
||||
moveCommand(vm, event) {
|
||||
moveOrCopy(vm, event, mode) {
|
||||
if (vm && event?.preventDefault) {
|
||||
stopEvent(event);
|
||||
}
|
||||
this.actionsMenu().ddBtn.hide();
|
||||
AppUserStore.focusedState(ScopeFolderList);
|
||||
moveAction(true);
|
||||
moveAction(mode);
|
||||
}
|
||||
|
||||
moveCommand(vm, event) {
|
||||
this.moveOrCopy(vm, event, 1);
|
||||
}
|
||||
|
||||
copyCommand(vm, event) {
|
||||
this.moveOrCopy(vm, event, 2);
|
||||
}
|
||||
|
||||
setUnseen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue