From 635abaf2e9ca4f0399085f441ea6d5eeaab9f3ab Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 17 Nov 2014 13:05:08 -0800 Subject: [PATCH] CLOUDSTACK-7927: UI > Infrastructure > Primary Storage > detailView > add "View Volumes" link that will list all volumes under this primary storage when being clicked. --- ui/scripts/storage.js | 7 ++++++- ui/scripts/system.js | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 90720ac9914..12b77f07149 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -477,7 +477,12 @@ $.extend(data, { virtualMachineId: args.context.instances[0].id }); - } + } + if ("primarystorages" in args.context) { + $.extend(data, { + storageid: args.context.primarystorages[0].id + }); + } } $.ajax({ diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 7b25c818bf8..1029254e22e 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -17398,6 +17398,10 @@ detailView: { name: "Primary storage details", + viewAll: { + label: 'label.volumes', + path: 'storage.volumes' + }, isMaximized: true, actions: { edit: {