[ACA-1097] Selecting node on document picker fails (#184)

* [ACA-1097] Selecting node on document picker fails

fixed bug

* upgrade to ADF 2.1.0 (#182)
This commit is contained in:
suzanadirla 2018-01-30 16:20:29 +02:00 committed by Denys Vuika
parent 19d6a65eff
commit f2cb478c1f

View File

@ -207,6 +207,7 @@ export class NodeActionsService {
dropdownSiteList: customDropdown,
rowFilter: this.rowFilter.bind(this),
imageResolver: this.imageResolver.bind(this),
isSelectionValid: this.hasEntityCreatePermission.bind(this),
select: new Subject<MinimalNodeEntryEntity[]>()
};
@ -237,6 +238,10 @@ export class NodeActionsService {
return data.select;
}
private hasEntityCreatePermission(entry: MinimalNodeEntryEntity): boolean {
return this.contentService.hasPermission(entry, 'create');
}
close() {
this.dialog.closeAll();
}