Fix going to 'All' filter by Escape
This commit is contained in:
parent
c9f44d12c8
commit
ca01d65c64
@ -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, '');
|
||||
|
@ -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…
x
Reference in New Issue
Block a user