revert changes

This commit is contained in:
Cilibiu Bogdan 2019-07-10 12:24:29 +03:00
parent b122f3a6e0
commit a2b022f507

View File

@ -44,7 +44,6 @@ import { BreakpointObserver } from '@angular/cdk/layout';
import {
AppStore,
getCurrentFolder,
ReloadDocumentListAction,
SetSelectedNodesAction
} from '@alfresco/aca-shared/store';
import { Directionality } from '@angular/cdk/bidi';
@ -141,14 +140,15 @@ export class AppLayoutComponent implements OnInit, OnDestroy {
this.router.events
.pipe(
filter(event => {
return event instanceof NavigationStart;
return (
event instanceof NavigationStart &&
// search employs reuse route strategy
!event.url.startsWith('/search;')
);
}),
takeUntil(this.onDestroy$)
)
.subscribe(() => {
this.store.dispatch(new SetSelectedNodesAction());
this.store.dispatch(new ReloadDocumentListAction());
});
.subscribe(() => this.store.dispatch(new SetSelectedNodesAction([])));
}
ngOnDestroy() {