This commit is contained in:
the-djmaze 2022-05-17 12:18:49 +02:00
parent 593d3af6d4
commit 663fb1485a
3 changed files with 4 additions and 11 deletions

View file

@ -40,7 +40,6 @@ export class FilterModel extends AbstractModel {
name: '',
nameError: false,
nameFocused: false,
conditionsType: FilterRulesType.Any,

View file

@ -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);
}
}