mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Resolve #400
This commit is contained in:
parent
593d3af6d4
commit
663fb1485a
3 changed files with 4 additions and 11 deletions
|
|
@ -40,7 +40,6 @@ export class FilterModel extends AbstractModel {
|
|||
|
||||
name: '',
|
||||
nameError: false,
|
||||
nameFocused: false,
|
||||
|
||||
conditionsType: FilterRulesType.Any,
|
||||
|
||||
|
|
|
|||
|
|
@ -186,19 +186,13 @@ export class FilterPopupView extends rl.pluginPopupView {
|
|||
|
||||
beforeShow(oFilter, fTrueCallback, bEdit) {
|
||||
// onShow(oFilter, fTrueCallback, bEdit) {
|
||||
this.populateOptions();
|
||||
|
||||
this.isNew(!bEdit);
|
||||
|
||||
this.fTrueCallback = fTrueCallback;
|
||||
this.filter(oFilter);
|
||||
|
||||
this.selectedFolderValue(oFilter.actionValue());
|
||||
|
||||
bEdit || oFilter.nameFocused(true);
|
||||
|
||||
this.populateOptions();
|
||||
}
|
||||
|
||||
afterShow() {
|
||||
this.isNew() && this.filter().nameFocused(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue