update selection witout locked files (#859)

This commit is contained in:
Cilibiu Bogdan
2018-12-06 18:34:06 +02:00
committed by Denys Vuika
parent 4c274acb3c
commit c7d11b93fc

View File

@@ -123,10 +123,12 @@ export class DocumentListDirective implements OnInit, OnDestroy {
} }
private updateSelection() { private updateSelection() {
const selection = this.documentList.selection.map(entry => { const selection = this.documentList.selection
entry['isLibrary'] = this.isLibrary; .filter(node => !this.isLockedNode(node.entry))
return entry; .map(node => {
}); node['isLibrary'] = this.isLibrary;
return node;
});
this.store.dispatch(new SetSelectedNodesAction(selection)); this.store.dispatch(new SetSelectedNodesAction(selection));
} }