Browse Source

Fix going to 'All' filter by Escape

master
Eduard Kuzmenko 3 years ago
parent
commit
ca01d65c64
  1. 7
      src/components/appNavigationController.ts
  2. 2
      src/lib/appManagers/appDialogsManager.ts

7
src/components/appNavigationController.ts

@ -186,6 +186,13 @@ export class AppNavigationController { @@ -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, '');

2
src/lib/appManagers/appDialogsManager.ts

@ -314,7 +314,7 @@ export class AppDialogsManager { @@ -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);

Loading…
Cancel
Save