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() {
const selection = this.documentList.selection.map(entry => {
entry['isLibrary'] = this.isLibrary;
return entry;
});
const selection = this.documentList.selection
.filter(node => !this.isLockedNode(node.entry))
.map(node => {
node['isLibrary'] = this.isLibrary;
return node;
});
this.store.dispatch(new SetSelectedNodesAction(selection));
}