From 0aeda824eeb77fbfdb37289ee6ad472fb1f85109 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Wed, 25 Mar 2020 17:19:17 +0530 Subject: [PATCH] storage: add basic B&R support (#64) This adds basic backup and recovery UI support. Signed-off-by: Rohit Yadav --- ui/src/components/view/DetailsTab.vue | 5 +++ ui/src/components/view/InfoCard.vue | 32 +++++++++------ ui/src/config/section/compute.js | 59 +++++++++++++++++++++++++++ ui/src/config/section/offering.js | 20 +++++++++ ui/src/config/section/storage.js | 52 +++++++++++++++++++++++ ui/src/locales/en.json | 4 +- 6 files changed, 158 insertions(+), 14 deletions(-) diff --git a/ui/src/components/view/DetailsTab.vue b/ui/src/components/view/DetailsTab.vue index 806bbb87fc6..418f4ef6044 100644 --- a/ui/src/components/view/DetailsTab.vue +++ b/ui/src/components/view/DetailsTab.vue @@ -28,6 +28,11 @@ {{ service.name }} : {{ service.provider[0].name }} +
+
+ {{ volume.type }} - {{ volume.path }} ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB) +
+
{{ resource[item] }}
diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 35a609ac822..516188f7f71 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -29,7 +29,7 @@

- {{ resource.displayname || resource.displaytext || resource.name || resource.hostname || resource.username || resource.ipaddress }} + {{ resource.displayname || resource.displaytext || resource.name || resource.hostname || resource.username || resource.ipaddress || resource.virtualmachinename }}

@@ -214,8 +214,8 @@
{{ $t('disksize') }}
- {{ (resource.volumes.reduce((total, item) => total += item.size, 0) / (1024 * 1024 * 1024.0)).toFixed(2) }} GB Storage - {{ resource.sizegb }} + {{ (resource.volumes.reduce((total, item) => total += item.size, 0) / (1024 * 1024 * 1024.0)).toFixed(2) }} GB Storage + {{ resource.sizegb || (resource.size/1024.0) }}
Read {{ toSize(resource.diskkbsread) }} @@ -332,6 +332,17 @@ {{ resource.vpcname || resource.vpcid }}
+
+
{{ $t('affinitygroup') }}
+ + + {{ group.name }} + , + +
{{ $t('serviceofferingname') }}
@@ -353,6 +364,11 @@ {{ resource.diskofferingname || resource.diskofferingid }}
+
+
{{ $t('backupofferingid') }}
+ + {{ resource.backupofferingname || resource.backupofferingid }} +
{{ $t('networkofferingid') }}
@@ -441,16 +457,6 @@ {{ resource.created }}
-
- - - {{ group.name }} - , - -