From e93d67444dc0ea721d477fdd7565a6e76652fb79 Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Thu, 18 Nov 2021 09:14:52 +0100 Subject: [PATCH] ui-primary-storage: hide provider if Linstor protocol (#5672) * 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-wizard: set correct provider for Linstor protocol --- ui/src/views/infra/AddPrimaryStorage.vue | 32 ++++++++++--------- .../views/infra/zone/ZoneWizardLaunchZone.vue | 1 + 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ui/src/views/infra/AddPrimaryStorage.vue b/ui/src/views/infra/AddPrimaryStorage.vue index 3698b35bb6f..043e3d0f4a4 100644 --- a/ui/src/views/infra/AddPrimaryStorage.vue +++ b/ui/src/views/infra/AddPrimaryStorage.vue @@ -180,21 +180,23 @@ - - - - - {{ provider }} - - - +
+ + + + + {{ provider }} + + + +
diff --git a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue index 69e61bb271d..eb18181aa88 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