Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit 459f7d8

Browse files
author
Pearl Dsilva
committed
filter protocol based on the provider selected - PowerFlex
1 parent b1661a7 commit 459f7d8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/views/infra/AddPrimaryStorage.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
</span>
203203
<a-select
204204
v-decorator="['provider', { initialValue: providerSelected, rules: [{ required: true, message: `${$t('label.required')}`}] }]"
205-
@change="val => this.providerSelected = val">
205+
@change="updateProviderAndProtocol">
206206
<a-select-option :value="provider" v-for="(provider,idx) in providers" :key="idx">
207207
{{ provider }}
208208
</a-select-option>
@@ -600,6 +600,14 @@ export default {
600600
gateway + '/' + encodeURIComponent(pool)
601601
return url
602602
},
603+
updateProviderAndProtocol (value) {
604+
if (value === 'PowerFlex') {
605+
this.protocols = ['custom']
606+
} else {
607+
this.fetchHypervisor(null)
608+
}
609+
this.providerSelected = value
610+
},
603611
closeModal () {
604612
this.$parent.$parent.close()
605613
},

0 commit comments

Comments
 (0)