Skip to content

Commit

Permalink
update selection witout locked files (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
pionnegru authored and DenysVuika committed Dec 6, 2018
1 parent 4c274ac commit c7d11b9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/directives/document-list.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit c7d11b9

Please sign in to comment.