From 86126bf5d7f3fe54e1da13160a23c22ad9397eed Mon Sep 17 00:00:00 2001 From: Rene Peinthor Date: Tue, 21 Jun 2022 11:20:01 +0200 Subject: [PATCH 1/2] ui-wizard: set correct provider for Linstor protocol --- ui/src/views/infra/zone/ZoneWizardLaunchZone.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue index 377afe700510..432523c901a2 100644 --- a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue +++ b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue @@ -1343,6 +1343,7 @@ export default { url = this.rbdURL(rbdmonitor, rbdpool, rbdid, rbdsecret) } else if (protocol === 'Linstor') { url = this.linstorURL(server) + params.provider = 'Linstor' params['details[0].resourceGroup'] = this.prefillContent.primaryStorageLinstorResourceGroup } else if (protocol === 'vmfs' || protocol === 'datastorecluster') { let path = this.prefillContent.primaryStorageVmfsDatacenter From 29a68fb9320c0393a1996d4553b6cafc5ffa33bf Mon Sep 17 00:00:00 2001 From: Rene Peinthor Date: Tue, 21 Jun 2022 11:26:31 +0200 Subject: [PATCH 2/2] ui-primary-storage: hide provider if Linstor protocol If Linstor protocol is selected it makes no sense to show other providers as Linstor only works with the Linstor provider. --- ui/src/views/infra/AddPrimaryStorage.vue | 38 +++++++++++++----------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/ui/src/views/infra/AddPrimaryStorage.vue b/ui/src/views/infra/AddPrimaryStorage.vue index 3c2e34e11304..02dd30baedb7 100644 --- a/ui/src/views/infra/AddPrimaryStorage.vue +++ b/ui/src/views/infra/AddPrimaryStorage.vue @@ -209,24 +209,26 @@ - - - - - {{ provider }} - - - +
+ + + + + {{ provider }} + + + +