mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Slight code reduction for #419
This commit is contained in:
parent
7450afeecf
commit
386fd936b4
5 changed files with 26 additions and 27 deletions
|
|
@ -32,14 +32,12 @@ export class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
// Almost the same as MessageModel.tagOptions
|
||||
keywords: () => {
|
||||
const keywords = [{value:'',label:''}];
|
||||
FolderUserStore.currentFolder().permanentFlags.forEach(value => {
|
||||
if (isAllowedKeyword(value)) {
|
||||
let lower = value.toLowerCase();
|
||||
keywords.push({
|
||||
value: value,
|
||||
label: i18n('MESSAGE_TAGS/'+lower, 0, lower)
|
||||
});
|
||||
}
|
||||
FolderUserStore.currentFolder().optionalTags().forEach(value => {
|
||||
let lower = value.toLowerCase();
|
||||
keywords.push({
|
||||
value: value,
|
||||
label: i18n('MESSAGE_TAGS/'+lower, 0, lower)
|
||||
});
|
||||
});
|
||||
return keywords
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue