metrics: fix volumes quick view, remove nav from volumes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-10-21 16:13:48 +05:30
parent 108322142e
commit ddd57c3888
1 changed files with 1 additions and 6 deletions

View File

@ -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
}
};