0
0
Fork 0

Fix route ticket sms event

This commit is contained in:
Kevin Martinez 2024-02-07 00:01:07 -03:00
parent 97f373626c
commit 988362ab69
3 changed files with 10 additions and 5 deletions

View File

@ -4,10 +4,12 @@ import { useI18n } from 'vue-i18n';
import {computed, ref} from 'vue';
import VnInput from 'components/common/VnInput.vue';
import axios from 'axios';
import useNotify from "composables/useNotify";
const MESSAGE_MAX_LENGTH = 160;
const {t} = useI18n();
const {notify} = useNotify();
const props = defineProps({
title: {
type: String,
@ -79,6 +81,7 @@ const onSubmit = async () => {
if (response.data) {
emit('sent', response.data);
notify('globals.smsSent', 'positive');
}
emit('ok', response.data);
emit('hide', response.data);

View File

@ -64,6 +64,7 @@ export default {
markAll: 'Mark all',
noResults: 'No results',
system: 'System',
smsSent: 'SMS sent',
},
errors: {
statusUnauthorized: 'Access denied',

View File

@ -70,6 +70,7 @@ export default {
system: 'Sistema',
fieldRequired: 'Campo requerido',
allowedFilesText: 'Tipos de archivo permitidos: { allowedContentTypes }',
smsSent: 'SMS enviado',
},
errors: {
statusUnauthorized: 'Acceso denegado',