mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-14 17:58:44 +00:00
fix adf-delete directive NodeResult (#4827)
This commit is contained in:
committed by
Eugenio Romano
parent
117050decf
commit
6c08231f33
@@ -110,7 +110,7 @@ export class NodeDeleteDirective implements OnChanges {
|
|||||||
|
|
||||||
let promise;
|
let promise;
|
||||||
|
|
||||||
if (node.entry.hasOwnProperty('archivedAt')) {
|
if (node.entry.hasOwnProperty('archivedAt') && node.entry['archivedAt']) {
|
||||||
promise = this.alfrescoApiService.nodesApi.purgeDeletedNode(id);
|
promise = this.alfrescoApiService.nodesApi.purgeDeletedNode(id);
|
||||||
} else {
|
} else {
|
||||||
promise = this.alfrescoApiService.nodesApi.deleteNode(id, { permanent: this.permanent });
|
promise = this.alfrescoApiService.nodesApi.deleteNode(id, { permanent: this.permanent });
|
||||||
|
Reference in New Issue
Block a user