[ADF-5354] Content node selector is not working properly for read-only folders (#6777)

* disable button when no permission

* test

* breadcrumb fallback when selection is not valid

* test
This commit is contained in:
Cilibiu Bogdan
2021-03-06 11:37:42 +02:00
committed by GitHub
parent 994b4555af
commit e21b777a3c
4 changed files with 45 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ export class ContentNodeSelectorComponent implements OnInit {
}
isChooseButtonDisabled(): boolean {
return this.uploadService.isUploading() || !this.hasNodeSelected();
return this.uploadService.isUploading() || !this.hasNodeSelected() || this.hasNoPermissionToUpload();
}
hasNodeSelected(): boolean {