mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +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
|
|
@ -4,7 +4,7 @@ import { i18n, trigger as translatorTrigger } from 'Common/Translator';
|
|||
|
||||
import MessageStore from 'Stores/User/Message';
|
||||
|
||||
import { command } from 'Knoin/Knoin';
|
||||
import { decorateKoCommands } from 'Knoin/Knoin';
|
||||
import { AbstractViewPopup } from 'Knoin/AbstractViews';
|
||||
|
||||
class AdvancedSearchPopupView extends AbstractViewPopup {
|
||||
|
|
@ -38,9 +38,12 @@ class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
{ id: 365, name: i18n(prefix + 'YEAR') }
|
||||
];
|
||||
});
|
||||
|
||||
decorateKoCommands(this, {
|
||||
searchCommand: 1
|
||||
});
|
||||
}
|
||||
|
||||
@command()
|
||||
searchCommand() {
|
||||
const search = this.buildSearchString();
|
||||
if (search) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue