From b1e5afbbd12068cb4c10892ea727f9131e44d447 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 19 May 2015 19:02:12 +0200 Subject: [PATCH] feature #3748: Use XML_ROOT in vms panel --- src/sunstone/public/app/tabs/hosts-tab/panels/vms.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/app/tabs/hosts-tab/panels/vms.js b/src/sunstone/public/app/tabs/hosts-tab/panels/vms.js index cf47909d76..9cc0cae3ae 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/panels/vms.js +++ b/src/sunstone/public/app/tabs/hosts-tab/panels/vms.js @@ -11,8 +11,9 @@ define(function(require){ */ var PANEL_ID = require('./vms/panelId'); - var IMAGES_TABLE_ID = PANEL_ID + "VMsTable" - var RESOURCE = "Host" + var IMAGES_TABLE_ID = PANEL_ID + "VMsTable"; + var RESOURCE = "Host"; + var XML_ROOT = "HOST"; /* CONSTRUCTOR @@ -22,7 +23,7 @@ define(function(require){ this.title = Locale.tr("VMs"); this.icon = "fa-cloud"; - this.element = info[RESOURCE.toUpperCase()]; + this.element = info[XML_ROOT]; // TODO this.vmsDataTable = new VMsTable(IMAGES_TABLE_ID, {info: true}); return this;