mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Reduce JavaScript footprint
This commit is contained in:
parent
689126c57d
commit
b12852bd08
42 changed files with 240 additions and 426 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { i18n, trigger as translatorTrigger } from 'Common/Translator';
|
||||
import { i18n, translateTrigger } from 'Common/Translator';
|
||||
import { pString } from 'Common/Utils';
|
||||
|
||||
import { MessagelistUserStore } from 'Stores/User/Messagelist';
|
||||
|
|
@ -46,7 +46,7 @@ export class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
showKeywords: () => FolderUserStore.currentFolder().permanentFlags().some(isAllowedKeyword),
|
||||
|
||||
repliedOptions: () => {
|
||||
translatorTrigger();
|
||||
translateTrigger();
|
||||
return [
|
||||
{ id: -1, name: '' },
|
||||
{ id: 1, name: i18n('GLOBAL/YES') },
|
||||
|
|
@ -55,7 +55,7 @@ export class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
},
|
||||
|
||||
selectedDates: () => {
|
||||
translatorTrigger();
|
||||
translateTrigger();
|
||||
let prefix = 'SEARCH/DATE_';
|
||||
return [
|
||||
{ id: -1, name: i18n(prefix + 'ALL') },
|
||||
|
|
@ -69,7 +69,7 @@ export class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
},
|
||||
|
||||
selectedTree: () => {
|
||||
translatorTrigger();
|
||||
translateTrigger();
|
||||
let prefix = 'SEARCH/SUBFOLDERS_';
|
||||
return [
|
||||
{ id: '', name: i18n(prefix + 'NONE') },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue