mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +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
|
<a-select-option
|
||||||
v-for="networkOffering in availableNetworkOfferings"
|
v-for="networkOffering in availableNetworkOfferings"
|
||||||
:key="networkOffering.id">
|
:key="networkOffering.id">
|
||||||
{{ networkOffering.name }}
|
{{ networkOffering.displaytext || networkOffering.name || networkOffering.description }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@ -125,7 +125,7 @@
|
|||||||
:placeholder="this.$t('label.networkofferingid')"
|
:placeholder="this.$t('label.networkofferingid')"
|
||||||
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
|
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
|
||||||
<a-select-option v-for="(opt, optIndex) in this.networkOfferings" :key="optIndex">
|
<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-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@ -125,7 +125,7 @@
|
|||||||
:placeholder="this.$t('label.networkofferingid')"
|
:placeholder="this.$t('label.networkofferingid')"
|
||||||
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
|
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
|
||||||
<a-select-option v-for="(opt, optIndex) in this.networkOfferings" :key="optIndex">
|
<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-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@ -74,11 +74,6 @@ export default {
|
|||||||
actionZoneLoading: false
|
actionZoneLoading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
resource (newItem, oldItem) {
|
|
||||||
this.fetchData()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
created () {
|
||||||
const promises = []
|
const promises = []
|
||||||
promises.push(this.fetchActionZoneData())
|
promises.push(this.fetchActionZoneData())
|
||||||
@ -113,7 +108,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleRefresh () {
|
handleRefresh () {
|
||||||
this.fetchData()
|
|
||||||
},
|
},
|
||||||
refreshParent () {
|
refreshParent () {
|
||||||
this.$emit('refresh-data')
|
this.$emit('refresh-data')
|
||||||
|
|||||||
@ -284,7 +284,7 @@
|
|||||||
:placeholder="this.$t('label.networkofferingid')"
|
:placeholder="this.$t('label.networkofferingid')"
|
||||||
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
|
@change="val => { this.handleNetworkOfferingChange(this.networkOfferings[val]) }">
|
||||||
<a-select-option v-for="(opt, optIndex) in this.networkOfferings" :key="optIndex">
|
<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-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<a-select
|
<a-select
|
||||||
v-decorator="['networkOffering',{rules: [{ required: true, message: `${$t('label.required')}` }]}]">
|
v-decorator="['networkOffering',{rules: [{ required: true, message: `${$t('label.required')}` }]}]">
|
||||||
<a-select-option v-for="item in networkOfferings" :key="item.id" :value="item.id">
|
<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-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user