ui: Show display text instead of name (#4831)

This commit is contained in:
Hoang Nguyen 2021-03-18 14:43:18 +07:00 committed by GitHub
parent b658cf12d0
commit d105d6a770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 11 deletions

View File

@ -237,7 +237,7 @@
<a-select-option
v-for="networkOffering in availableNetworkOfferings"
:key="networkOffering.id">
{{ networkOffering.name }}
{{ networkOffering.displaytext || networkOffering.name || networkOffering.description }}
</a-select-option>
</a-select>
</a-form-item>

View File

@ -125,7 +125,7 @@
:placeholder="this.$t('label.networkofferingid')"
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
<a-select-option v-for="(opt, optIndex) in this.networkOfferings" :key="optIndex">
{{ opt.name || opt.description }}
{{ opt.displaytext || opt.name || opt.description }}
</a-select-option>
</a-select>
</a-form-item>

View File

@ -125,7 +125,7 @@
:placeholder="this.$t('label.networkofferingid')"
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
<a-select-option v-for="(opt, optIndex) in this.networkOfferings" :key="optIndex">
{{ opt.name || opt.description }}
{{ opt.displaytext || opt.name || opt.description }}
</a-select-option>
</a-select>
</a-form-item>

View File

@ -74,11 +74,6 @@ export default {
actionZoneLoading: false
}
},
watch: {
resource (newItem, oldItem) {
this.fetchData()
}
},
created () {
const promises = []
promises.push(this.fetchActionZoneData())
@ -113,7 +108,6 @@ export default {
})
},
handleRefresh () {
this.fetchData()
},
refreshParent () {
this.$emit('refresh-data')

View File

@ -284,7 +284,7 @@
:placeholder="this.$t('label.networkofferingid')"
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
<a-select-option v-for="(opt, optIndex) in this.networkOfferings" :key="optIndex">
{{ opt.name || opt.description }}
{{ opt.displaytext || opt.name || opt.description }}
</a-select-option>
</a-select>
</a-form-item>

View File

@ -170,7 +170,7 @@
<a-select
v-decorator="['networkOffering',{rules: [{ required: true, message: `${$t('label.required')}` }]}]">
<a-select-option v-for="item in networkOfferings" :key="item.id" :value="item.id">
{{ item.name }}
{{ item.displaytext || item.name || item.description }}
</a-select-option>
</a-select>
</a-form-item>