mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Replace babel command decorators with proper knockout command decorators
This commit is contained in:
parent
b6d8fa5b3f
commit
540b12ed26
27 changed files with 181 additions and 132 deletions
|
|
@ -5,7 +5,7 @@ import { getNotification, i18n } from 'Common/Translator';
|
|||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
import { command, isPopupVisible, showScreenPopup } from 'Knoin/Knoin';
|
||||
import { decorateKoCommands, isPopupVisible, showScreenPopup } from 'Knoin/Knoin';
|
||||
import { AbstractViewPopup } from 'Knoin/AbstractViews';
|
||||
import { AskPopupView } from 'View/Popup/Ask';
|
||||
|
||||
|
|
@ -30,9 +30,12 @@ class PluginPopupView extends AbstractViewPopup {
|
|||
this.sDefaultKeyScope = KeyState.All;
|
||||
|
||||
this.tryToClosePopup = this.tryToClosePopup.debounce(200);
|
||||
|
||||
decorateKoCommands(this, {
|
||||
saveCommand: self => self.hasConfiguration()
|
||||
});
|
||||
}
|
||||
|
||||
@command((self) => self.hasConfiguration())
|
||||
saveCommand() {
|
||||
const list = {};
|
||||
list.Name = this.name();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue