forked from verdnatura/salix-front
Fix route ticket sms event
This commit is contained in:
parent
97f373626c
commit
988362ab69
|
@ -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);
|
||||
|
|
|
@ -64,6 +64,7 @@ export default {
|
|||
markAll: 'Mark all',
|
||||
noResults: 'No results',
|
||||
system: 'System',
|
||||
smsSent: 'SMS sent',
|
||||
},
|
||||
errors: {
|
||||
statusUnauthorized: 'Access denied',
|
||||
|
|
|
@ -70,6 +70,7 @@ export default {
|
|||
system: 'Sistema',
|
||||
fieldRequired: 'Campo requerido',
|
||||
allowedFilesText: 'Tipos de archivo permitidos: { allowedContentTypes }',
|
||||
smsSent: 'SMS enviado',
|
||||
},
|
||||
errors: {
|
||||
statusUnauthorized: 'Acceso denegado',
|
||||
|
|
Loading…
Reference in New Issue