mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-16 17:54:45 +00:00
revert changes
This commit is contained in:
parent
b122f3a6e0
commit
a2b022f507
@ -44,7 +44,6 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|||||||
import {
|
import {
|
||||||
AppStore,
|
AppStore,
|
||||||
getCurrentFolder,
|
getCurrentFolder,
|
||||||
ReloadDocumentListAction,
|
|
||||||
SetSelectedNodesAction
|
SetSelectedNodesAction
|
||||||
} from '@alfresco/aca-shared/store';
|
} from '@alfresco/aca-shared/store';
|
||||||
import { Directionality } from '@angular/cdk/bidi';
|
import { Directionality } from '@angular/cdk/bidi';
|
||||||
@ -141,14 +140,15 @@ export class AppLayoutComponent implements OnInit, OnDestroy {
|
|||||||
this.router.events
|
this.router.events
|
||||||
.pipe(
|
.pipe(
|
||||||
filter(event => {
|
filter(event => {
|
||||||
return event instanceof NavigationStart;
|
return (
|
||||||
|
event instanceof NavigationStart &&
|
||||||
|
// search employs reuse route strategy
|
||||||
|
!event.url.startsWith('/search;')
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
takeUntil(this.onDestroy$)
|
takeUntil(this.onDestroy$)
|
||||||
)
|
)
|
||||||
.subscribe(() => {
|
.subscribe(() => this.store.dispatch(new SetSelectedNodesAction([])));
|
||||||
this.store.dispatch(new SetSelectedNodesAction());
|
|
||||||
this.store.dispatch(new ReloadDocumentListAction());
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user