Skip to content

Commit eba7cc7

Browse files
author
Jessica Wang
committed
CLOUDSTACK-7927: UI > Infrastructure > Primary Storage > detailView > add "View Volumes" link that will list all volumes under this primary storage when being clicked.
1 parent 7aa64b9 commit eba7cc7

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

ui/scripts/storage.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,12 @@
477477
$.extend(data, {
478478
virtualMachineId: args.context.instances[0].id
479479
});
480-
}
480+
}
481+
if ("primarystorages" in args.context) {
482+
$.extend(data, {
483+
storageid: args.context.primarystorages[0].id
484+
});
485+
}
481486
}
482487

483488
$.ajax({

ui/scripts/system.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17419,6 +17419,10 @@
1741917419

1742017420
detailView: {
1742117421
name: "Primary storage details",
17422+
viewAll: {
17423+
label: 'label.volumes',
17424+
path: 'storage.volumes'
17425+
},
1742217426
isMaximized: true,
1742317427
actions: {
1742417428
edit: {

0 commit comments

Comments
 (0)