Fix going to 'All' filter by Escape

This commit is contained in:
Eduard Kuzmenko 2022-04-17 02:01:29 +03:00
parent c9f44d12c8
commit ca01d65c64
2 changed files with 8 additions and 1 deletions

View File

@ -186,6 +186,13 @@ export class AppNavigationController {
this.onItemAdded(item);
}
public spliceItems(index: number, length: number, ...items: NavigationItem[]) {
this.navigations.splice(index, length, ...items);
items.forEach((item) => {
this.onItemAdded(item);
});
}
private pushState() {
this.manual = false;
history.pushState(this.id, '');

View File

@ -314,7 +314,7 @@ export class AppDialogsManager {
}
};
appNavigationController.unshiftItem(this.filtersNavigationItem);
appNavigationController.spliceItems(1, 0, this.filtersNavigationItem);
}
} else if(this.filtersNavigationItem) {
appNavigationController.removeItem(this.filtersNavigationItem);