From bbbd65773a2814e5473ff13d0567171745b12bf6 Mon Sep 17 00:00:00 2001 From: Rene Peinthor Date: Mon, 8 Nov 2021 10:21:33 +0100 Subject: [PATCH 1/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. This was removed with the fix for #5613, that probably resulted from a bad merge resolving from my part. --- ui/src/views/infra/AddPrimaryStorage.vue | 32 +++++++++++++----------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/ui/src/views/infra/AddPrimaryStorage.vue b/ui/src/views/infra/AddPrimaryStorage.vue index 3698b35bb6f9..043e3d0f4a4a 100644 --- a/ui/src/views/infra/AddPrimaryStorage.vue +++ b/ui/src/views/infra/AddPrimaryStorage.vue @@ -180,21 +180,23 @@ - - - - - {{ provider }} - - - +
+ + + + + {{ provider }} + + + +
From 66e893dd8f39ec2622a617212487a70ef704336e Mon Sep 17 00:00:00 2001 From: Rene Peinthor Date: Tue, 9 Nov 2021 12:30:50 +0100 Subject: [PATCH 2/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 69e61bb271d8..eb18181aa88c 100644 --- a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue +++ b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue @@ -1340,6 +1340,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.value } else if (protocol === 'vmfs' || protocol === 'datastorecluster') { let path = this.prefillContent.primaryStorageVmfsDatacenter.value