From d7a98730535cd14275fd2d77ee1e51fa998baaf7 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 30 Dec 2021 16:26:54 +0530 Subject: [PATCH] ui: fix add network offering for vpc (#5809) * ui: fix add network offering for vpc Fixes issues with form related to supported services provider and router service offering when offering to be created for VPC. Fixes #5807 Signed-off-by: Abhishek Kumar * fix issues getting with making select element update on options change (loop infinity) (#72) * fixes Signed-off-by: Abhishek Kumar Co-authored-by: Hoang Nguyen --- ui/src/components/CheckBoxSelectPair.vue | 38 ++++--- ui/src/views/offering/AddNetworkOffering.vue | 114 ++++++++++++------- ui/src/views/offering/AddVpcOffering.vue | 2 - 3 files changed, 96 insertions(+), 58 deletions(-) diff --git a/ui/src/components/CheckBoxSelectPair.vue b/ui/src/components/CheckBoxSelectPair.vue index 29035e6b7d7..c0fcd9aaeda 100644 --- a/ui/src/components/CheckBoxSelectPair.vue +++ b/ui/src/components/CheckBoxSelectPair.vue @@ -20,7 +20,6 @@ {{ checkBoxLabel }} @@ -31,8 +30,7 @@ v-if="reversed != checked" :label="selectLabel"> - + - - - - {{ $t('label.public.lb') }} - - - {{ $t('label.internal.lb') }} - - - @@ -202,15 +188,28 @@ v-decorator="['service.'+item.name, {}]" :resourceKey="item.name" :checkBoxLabel="item.description" - :checkBoxDecorator="'service.' + item.name" - :selectOptions="item.provider" - :selectDecorator="item.name + '.provider'" + :selectOptions="!supportedServiceLoading ? item.provider: []" @handle-checkselectpair-change="handleSupportedServiceChange"/> - + + + + {{ $t('label.public.lb') }} + + + {{ $t('label.internal.lb') }} + + + +