mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6823] Fix jumping selected files action bar (#3689)
This commit is contained in:
@@ -93,7 +93,7 @@ export class DocumentListDirective implements OnInit, OnDestroy {
|
|||||||
.subscribe(() => this.onReady());
|
.subscribe(() => this.onReady());
|
||||||
|
|
||||||
this.appHookService.reload.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
|
this.appHookService.reload.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
|
||||||
this.reload(this.selectedNode);
|
this.reload();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.appHookService.reset.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
|
this.appHookService.reset.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
|
||||||
@@ -166,13 +166,9 @@ export class DocumentListDirective implements OnInit, OnDestroy {
|
|||||||
this.store.dispatch(new SetSelectedNodesAction(selection));
|
this.store.dispatch(new SetSelectedNodesAction(selection));
|
||||||
}
|
}
|
||||||
|
|
||||||
private reload(selectedNode?: NodeEntry) {
|
private reload() {
|
||||||
this.documentList.resetSelection();
|
this.documentList.resetSelection();
|
||||||
if (selectedNode) {
|
this.store.dispatch(new SetSelectedNodesAction([]));
|
||||||
this.store.dispatch(new SetSelectedNodesAction([selectedNode]));
|
|
||||||
} else {
|
|
||||||
this.store.dispatch(new SetSelectedNodesAction([]));
|
|
||||||
}
|
|
||||||
this.documentList.reload();
|
this.documentList.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user