reset store selection and document list

This commit is contained in:
Cilibiu Bogdan
2019-07-08 17:25:56 +03:00
parent 77fa5fa487
commit b122f3a6e0

View File

@@ -44,7 +44,8 @@ import { BreakpointObserver } from '@angular/cdk/layout';
import { import {
AppStore, AppStore,
getCurrentFolder, getCurrentFolder,
ReloadDocumentListAction ReloadDocumentListAction,
SetSelectedNodesAction
} from '@alfresco/aca-shared/store'; } from '@alfresco/aca-shared/store';
import { Directionality } from '@angular/cdk/bidi'; import { Directionality } from '@angular/cdk/bidi';
@@ -144,7 +145,10 @@ export class AppLayoutComponent implements OnInit, OnDestroy {
}), }),
takeUntil(this.onDestroy$) takeUntil(this.onDestroy$)
) )
.subscribe(() => this.store.dispatch(new ReloadDocumentListAction())); .subscribe(() => {
this.store.dispatch(new SetSelectedNodesAction());
this.store.dispatch(new ReloadDocumentListAction());
});
} }
ngOnDestroy() { ngOnDestroy() {