manage version for favorite nodes (#405)

This commit is contained in:
Cilibiu Bogdan 2018-06-13 16:56:59 +03:00 committed by Denys Vuika
parent a849a215bb
commit e8ad0ad9ab

View File

@ -58,9 +58,9 @@ export class NodeVersionsDirective {
if (this.node && this.node.entry) { if (this.node && this.node.entry) {
let entry = this.node.entry; let entry = this.node.entry;
if (entry.nodeId) { if (entry.nodeId || (<any>entry).guid) {
entry = await this.apiService.nodesApi.getNodeInfo( entry = await this.apiService.nodesApi.getNodeInfo(
entry.nodeId, entry.nodeId || (<any>entry).id,
{ include: ['allowableOperations'] } { include: ['allowableOperations'] }
); );
this.openVersionManagerDialog(entry); this.openVersionManagerDialog(entry);