Remove extra bracket is display message (#767)

Also display proper error message for required field
while registering template

Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rakesh 2020-09-29 17:03:18 +02:00 committed by Rohit Yadav
parent e2f898a828
commit eda6929b79
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@
<a-form-item :label="$t('label.name')">
<a-input
v-decorator="['name', {
rules: [{ required: true, message: `${this.$t('label.upload.template.from.local')}` }]
rules: [{ required: true, message: `${this.$t('message.error.required.input')}` }]
}]"
:placeholder="apiParams.name.description" />
</a-form-item>

View File

@ -650,7 +650,7 @@ export default {
params.storagepolicy = values.storagepolicy
}
api('createDiskOffering', params).then(json => {
this.$message.success(`${this.$t('message.disk.offering.created')} ${values.name}}`)
this.$message.success(`${this.$t('message.disk.offering.created')} ${values.name}`)
this.$emit('refresh-data')
this.closeAction()
}).catch(error => {