From 983520342f5248bc3b7016222e6162385c0df589 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Tue, 29 Sep 2015 14:54:47 +0530 Subject: [PATCH] metrics: add quick action view/column for clusters, hosts and instances Signed-off-by: Rohit Yadav --- ui/scripts/metrics.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/ui/scripts/metrics.js b/ui/scripts/metrics.js index 4ff6c09e7ae..31553889152 100644 --- a/ui/scripts/metrics.js +++ b/ui/scripts/metrics.js @@ -30,11 +30,12 @@ } }; + // Zones Metrics cloudStack.sections.metrics.zones = { title: 'label.metrics', listView: { - id: 'metrics', + id: 'zones', fields: { name: { label: 'label.name' @@ -219,7 +220,7 @@ cloudStack.sections.metrics.clusters = { title: 'label.metrics', listView: { - id: 'metrics', + id: 'clusters', fields: { name: { label: 'label.name' @@ -398,15 +399,17 @@ browseBy: { filterBy: 'clusterid', resource: 'hosts' - } + }, + detailView: cloudStack.sections.system.subsections.clusters.listView.detailView } }; + // Hosts Metrics cloudStack.sections.metrics.hosts = { title: 'label.metrics', listView: { - id: 'metrics', + id: 'hosts', fields: { name: { label: 'label.name' @@ -504,7 +507,8 @@ browseBy: { filterBy: 'hostid', resource: 'vms' - } + }, + detailView: cloudStack.sections.system.subsections.hosts.listView.detailView } }; @@ -513,7 +517,7 @@ cloudStack.sections.metrics.instances = { title: 'label.metrics', listView: { - id: 'metrics', + id: 'instances', fields: { name: { label: 'label.name' @@ -618,7 +622,8 @@ browseBy: { filterBy: 'virtualmachineid', resource: 'volumes' - } + }, + detailView: cloudStack.sections.instances.listView.detailView } };