mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
ui: Show display text instead of name (#4831)
This commit is contained in:
parent
b658cf12d0
commit
d105d6a770
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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')
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user