From ddd57c38889738dd5e6da789c6accbd3d9fa7b67 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Wed, 21 Oct 2015 16:13:48 +0530 Subject: [PATCH] metrics: fix volumes quick view, remove nav from volumes Signed-off-by: Rohit Yadav --- ui/scripts/metrics.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ui/scripts/metrics.js b/ui/scripts/metrics.js index 41acef79393..9be82e9d344 100644 --- a/ui/scripts/metrics.js +++ b/ui/scripts/metrics.js @@ -894,13 +894,12 @@ if (json && json.listvolumesresponse && json.listvolumesresponse.volume) { items = json.listvolumesresponse.volume; $.each(items, function(idx, volume) { - items[idx].id = volume.storageid; // replace id with storageid for volume to storagepool navigation items[idx].name = volume.name; items[idx].state = volume.state; items[idx].vmname = volume.vmname; items[idx].diskoffering = volume.diskofferingname; items[idx].disksize = parseFloat(volume.size)/(1024.0*1024.0*1024.0) + "GB"; - items[idx].storagetype = volume.storagetype.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); + items[idx].storagetype = volume.storagetype.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}) + ' (' + volume.type + ')'; if (volume.storage) { items[idx].storagetype += " (" + volume.storage + ")"; } @@ -912,10 +911,6 @@ } }); }, - browseBy: { - filterBy: 'id', - resource: 'storagepool' - }, detailView: cloudStack.sections.storage.sections.volumes.listView.detailView } };