mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
decorateKoCommands() each command must have function
And due to that, a bug is found and solved in MessageView
This commit is contained in:
parent
a67fb22bee
commit
f50f2c5ea0
5 changed files with 40 additions and 49 deletions
|
|
@ -366,10 +366,10 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
|
||||
decorateKoCommands(this, {
|
||||
sendCommand: self => self.canBeSentOrSaved(),
|
||||
saveCommand: self => self.canBeSentOrSaved(),
|
||||
deleteCommand: self => self.isDraftFolderMessage(),
|
||||
skipCommand: self => self.canBeSentOrSaved(),
|
||||
contactsCommand: self => self.allowContacts
|
||||
saveCommand: self => self.canBeSentOrSaved(),
|
||||
deleteCommand: self => self.isDraftFolderMessage(),
|
||||
skipCommand: self => self.canBeSentOrSaved(),
|
||||
contactsCommand: self => self.allowContacts
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ export class ContactsPopupView extends AbstractViewPopup {
|
|||
});
|
||||
|
||||
decorateKoCommands(this, {
|
||||
// closeCommand: self => !self.watchDirty(),
|
||||
deleteCommand: self => 0 < self.contactsCheckedOrSelected().length,
|
||||
newMessageCommand: self => 0 < self.contactsCheckedOrSelected().length,
|
||||
saveCommand: self => !self.viewSaving() && !self.viewReadOnly()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue