From ffa34b03e190b2367b716f3ca8efed21caf5fb81 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Mon, 17 Aug 2020 18:25:31 +0200 Subject: [PATCH] B #5014: Fix cloud view widget with group vms (#155) (cherry picked from commit d4337e91bdbf66736b32b7dc8957e436f51f2b8a) --- src/sunstone/public/app/tabs/provision-tab.js | 11 ++ .../provision-tab/dashboard/group-vms.hbs | 181 +++++++++--------- 2 files changed, 103 insertions(+), 89 deletions(-) diff --git a/src/sunstone/public/app/tabs/provision-tab.js b/src/sunstone/public/app/tabs/provision-tab.js index 2cf1334910..9c73f1c6af 100644 --- a/src/sunstone/public/app/tabs/provision-tab.js +++ b/src/sunstone/public/app/tabs/provision-tab.js @@ -397,6 +397,17 @@ define(function(require) { "start_time": start_time, "end_time": end_time }; + + OpenNebula.VM.accounting({ + //timeout: true, + success: function(req, response){ + var context = $("#provision_group_vms_dashboard"); + Accounting.fillAccounting(context, req, response, false); + }, + error: Notifier.onError, + data: options + }); + OpenNebula.VM.list({ timeout: true, success: function (request, item_list){ diff --git a/src/sunstone/public/app/tabs/provision-tab/dashboard/group-vms.hbs b/src/sunstone/public/app/tabs/provision-tab/dashboard/group-vms.hbs index 018a1cb1d6..80ee339c86 100644 --- a/src/sunstone/public/app/tabs/provision-tab/dashboard/group-vms.hbs +++ b/src/sunstone/public/app/tabs/provision-tab/dashboard/group-vms.hbs @@ -13,104 +13,107 @@ {{! See the License for the specific language governing permissions and }} {{! limitations under the License. }} {{! -------------------------------------------------------------------------- }} -
-
-

{{tr "Group Virtual Machines"}}

-
-
-
-
-

- - -
- {{tr "TOTAL"}} -

-
-
-
-
- - - -
-
-
-
-
-
-

- - -
- {{tr "RUNNING"}} -

-
-
-

- - -
- {{tr "DEPLOYING"}} -

-
-
-

- - -
- {{tr "OFF"}} -

-
-
-

- - -
- {{tr "ERROR"}} -

-
-
-
-
-
- -
-
- - {{tr "CPU hours"}} +
+
+
+

{{tr "Group Virtual Machines"}}

+
+
+
+
+

+ -

-
-
{{> ./empty-graphs}}
-
+
+ {{tr "TOTAL"}} +
-
-
-
- - {{tr "Memory GB hours"}} - -
-
-
{{> ./empty-graphs}}
-
+
+
+ + +
-
-
-
- - {{tr "Disk MB hours"}} - +
+
+
+
+

+ + +
+ {{tr "RUNNING"}} +

+
+
+

+ + +
+ {{tr "DEPLOYING"}} +

+
+
+

+ + +
+ {{tr "OFF"}} +

+
+
+

+ + +
+ {{tr "ERROR"}} +

+
+
+
+
+
+ +
+
+ + {{tr "CPU"}} + +
+
+
{{> ./empty-graphs}}
+
-
-
{{> ./empty-graphs}}
+
+
+
+
+ + {{tr "Memory GB"}} + +
+
+
{{> ./empty-graphs}}
+
+
+
+
+
+
+ + {{tr "Disk MB"}} + +
+
+
{{> ./empty-graphs}}
+
-
\ No newline at end of file +
+