[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:
Suzana Dirla
2018-04-16 10:39:21 +01:00
committed by Denys Vuika
parent a047fe2baf
commit 10818633c5
@@ -58,13 +58,9 @@ export class NodeVersionsDirective {
const contentEntry = this.selection[0].entry;
const nodeId = (<any>contentEntry).nodeId;
if (nodeId) {
// get the node entry that was shared:
this.apiService.getInstance().nodes.getNodeInfo(nodeId).then(entry => this.openVersionManagerDialog(entry));
} else {
this.openVersionManagerDialog(contentEntry);
}
this.apiService.getInstance().nodes.getNodeInfo(nodeId || contentEntry.id, {
include: ['allowableOperations']
}).then(entry => this.openVersionManagerDialog(entry));
}