metrics: navigate from volumes to storagepool

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-10-21 15:44:42 +05:30
parent 84e2b1e643
commit 108322142e
1 changed files with 2 additions and 1 deletions

View File

@ -894,6 +894,7 @@
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;
@ -912,7 +913,7 @@
});
},
browseBy: {
filterBy: 'storageid',
filterBy: 'id',
resource: 'storagepool'
},
detailView: cloudStack.sections.storage.sections.volumes.listView.detailView