mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Pranav <pranav@chatwoot.com>
16 lines
406 B
JavaScript
16 lines
406 B
JavaScript
export default {
|
|
computed: {
|
|
getSlaNameErrorMessage() {
|
|
let errorMessage = '';
|
|
if (this.$v.name.$error) {
|
|
if (!this.$v.name.required) {
|
|
errorMessage = this.$t('SLA.FORM.NAME.REQUIRED_ERROR');
|
|
} else if (!this.$v.name.minLength) {
|
|
errorMessage = this.$t('SLA.FORM.NAME.MINIMUM_LENGTH_ERROR');
|
|
}
|
|
}
|
|
return errorMessage;
|
|
},
|
|
},
|
|
};
|