mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
committed by
Denys Vuika
parent
4536c43c9f
commit
3bf9cc1fb2
@@ -55,7 +55,15 @@ export class NodesApi extends RepoApi {
|
||||
}
|
||||
|
||||
async getNodeProperty(nodeId: string, property: string) {
|
||||
return (await this.getNodeById(nodeId)).entry.properties[property];
|
||||
const node = await this.getNodeById(nodeId);
|
||||
if (node.entry.properties) {
|
||||
return node.entry.properties[property];
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
async isFileShared(nodeId: string) {
|
||||
return (await this.getNodeProperty(nodeId, 'qshare:sharedId')) !== '';
|
||||
}
|
||||
|
||||
async deleteNodeById(id: string, permanent: boolean = true) {
|
||||
|
Reference in New Issue
Block a user