mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Bugfix: invalid template id's
And cleanup strings
This commit is contained in:
parent
5e63ade9dd
commit
d23689dae8
2 changed files with 18 additions and 33 deletions
|
|
@ -44,23 +44,17 @@ export class FilterConditionModel extends AbstractModel {
|
|||
});
|
||||
|
||||
this.template = ko.computed(() => {
|
||||
let template = '';
|
||||
const template = 'SettingsFiltersCondition';
|
||||
switch (this.field()) {
|
||||
case FilterConditionField.Body:
|
||||
template = 'SettingsFiltersConditionBody';
|
||||
break;
|
||||
return template + 'Body';
|
||||
case FilterConditionField.Size:
|
||||
template = 'SettingsFiltersConditionSize';
|
||||
break;
|
||||
return template + 'Size';
|
||||
case FilterConditionField.Header:
|
||||
template = 'SettingsFiltersConditionMore';
|
||||
break;
|
||||
return template + 'More';
|
||||
default:
|
||||
template = 'SettingsFiltersConditionDefault';
|
||||
break;
|
||||
return template + 'Default';
|
||||
}
|
||||
|
||||
return template;
|
||||
}, this);
|
||||
|
||||
this.addSubscribables({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue