mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-1308] User can't upload a new version for a document in "Favorties" view list from the drop down menu (#308)
fix bug - made sure to always get the allowableOperations for selected node
This commit is contained in:
committed by
Denys Vuika
parent
a047fe2baf
commit
10818633c5
@@ -58,13 +58,9 @@ export class NodeVersionsDirective {
|
|||||||
const contentEntry = this.selection[0].entry;
|
const contentEntry = this.selection[0].entry;
|
||||||
const nodeId = (<any>contentEntry).nodeId;
|
const nodeId = (<any>contentEntry).nodeId;
|
||||||
|
|
||||||
if (nodeId) {
|
this.apiService.getInstance().nodes.getNodeInfo(nodeId || contentEntry.id, {
|
||||||
// get the node entry that was shared:
|
include: ['allowableOperations']
|
||||||
this.apiService.getInstance().nodes.getNodeInfo(nodeId).then(entry => this.openVersionManagerDialog(entry));
|
}).then(entry => this.openVersionManagerDialog(entry));
|
||||||
|
|
||||||
} else {
|
|
||||||
this.openVersionManagerDialog(contentEntry);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user