first pass

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-03-23 11:42:29 +05:30
parent 8ebab41a44
commit 7074e7cd7c
4 changed files with 22 additions and 13 deletions

View File

@ -222,6 +222,7 @@
"fwdevicestate": "Status",
"gateway": "Gateway",
"glustervolume": "Volume",
"gpu": "GPU",
"group": "Group",
"gslbdomainname": "GSLB Domain Name",
"gslblbmethod": "Algorithm",
@ -767,7 +768,7 @@
"nvpdeviceid": "ID",
"offerHA": "Offer HA",
"offerha": "Offer HA",
"offeringType": "Compute offering type",
"offeringtype": "Compute Offering Type",
"operation": "Operation",
"order": "Order",
"osTypeId": "OS Type",
@ -830,7 +831,7 @@
"publicnetwork": "Public network",
"publicport": "Public Port",
"purpose": "Purpose",
"qosType": "QoS Type",
"qostype": "QoS Type",
"quickview": "Quick view",
"quiescevm": "Quiesce VM",
"quietTime": "Quiet Time (in sec)",
@ -937,7 +938,7 @@
"storage": "Storage",
"storageId": "Primary Storage",
"storagePool": "Storage Pool",
"storageTags": "Storage Tags",
"storagetags": "Storage Tags",
"storageType": "Storage Type",
"storagepolicy": "Storage policy",
"storagetype": "Storage Type",
@ -1002,7 +1003,7 @@
"vcsdeviceid": "ID",
"version": "Version",
"vgpu": "VGPU",
"vgpuType": "vGPU type",
"vgputype": "vGPU type",
"virtualMachineId": "Instance",
"virtualmachinedisplayname": "VM name",
"virtualmachineid": "VM ID",

View File

@ -174,7 +174,7 @@
<a-input v-decorator="['volume']" />
</a-form-item>
</div>
<a-form-item :label="$t('storageTags')">
<a-form-item :label="$t('storagetags')">
<a-select
mode="tags"
v-model="selectedTags"

View File

@ -47,9 +47,9 @@
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}"
:placeholder="this.$t('systemvmtype')">
<a-select-option key="domainrouter">{{ $t('domain.router') }}</a-select-option>
<a-select-option key="consoleproxy">{{ $t('console.proxy') }}</a-select-option>
<a-select-option key="secondarystoragevm">{{ $t('secondary.storage.vm') }}</a-select-option>
<a-select-option key="domainrouter">Domain Router</a-select-option>
<a-select-option key="consoleproxy">Console Proxy</a-select-option>
<a-select-option key="secondarystoragevm">Secondary Storage VM</a-select-option>
</a-select>
</a-form-item>
<a-form-item :label="$t('storagetype')">
@ -358,7 +358,7 @@
v-decorator="['hosttags', {}]"
:placeholder="this.$t('hosttags')"/>
</a-form-item>
<a-form-item :label="$t('tags')" v-if="this.isAdmin()">
<a-form-item :label="$t('storagetags')" v-if="this.isAdmin()">
<a-select
mode="tags"
v-decorator="['storagetags', {}]"
@ -417,7 +417,7 @@
</a-radio-button>
</a-radio-group>
</a-form-item>
<a-form-item :label="$t('pcidevice')" v-if="!this.isSystem">
<a-form-item :label="$t('gpu')" v-if="!this.isSystem">
<a-radio-group
v-decorator="['pcidevice', {
initialValue: this.selectedGpu
@ -446,7 +446,7 @@
<a-form-item :label="$t('ispublic')" v-show="this.isAdmin()">
<a-switch v-decorator="['ispublic', {initialValue: this.isPublic}]" :checked="this.isPublic" @change="val => { this.isPublic = val }" />
</a-form-item>
<a-form-item :label="$t('domainid')" v-if="!this.isPublic">
<a-form-item :label="$t('domain')" v-if="!this.isPublic">
<a-select
mode="multiple"
v-decorator="['domainid', {
@ -567,7 +567,7 @@ export default {
this.zones = [
{
id: null,
name: this.$t('all.zone')
name: this.$t('label.all.zone')
}
]
},
@ -821,6 +821,7 @@ export default {
})
}).finally(() => {
this.loading = false
this.$emit('refresh-data')
this.closeAction()
})
})
@ -833,6 +834,13 @@ export default {
</script>
<style scoped lang="scss">
.form-layout {
width: 80vw;
@media (min-width: 800px) {
width: 400px;
}
}
.action-button {
text-align: right;

View File

@ -73,7 +73,7 @@
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}"
:loading="zoneLoading"
:placeholder="this.$t('label.zone')">
:placeholder="this.$t('zone')">
<a-select-option v-for="(opt, optIndex) in this.zones" :key="optIndex">
{{ opt.name || opt.description }}
</a-select-option>