diff --git a/dockerfile b/dockerfile index b0446c3..2194ffe 100644 --- a/dockerfile +++ b/dockerfile @@ -11,7 +11,5 @@ COPY . . COPY install.sh /usr/local/bin/install.sh RUN chmod +x /usr/local/bin/install.sh -EXPOSE 3000 - ENTRYPOINT ["/usr/local/bin/install.sh"] CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] \ No newline at end of file diff --git a/src/components/App/AddressSection.vue b/src/components/App/AddressSection.vue index 1684402..7b93af3 100644 --- a/src/components/App/AddressSection.vue +++ b/src/components/App/AddressSection.vue @@ -10,15 +10,15 @@ const addressName = ref(""); /** Métodos */ const handleSubmit = () => { if (!addressName.value.trim()) { - alert("Por favor ingresa un nombre de dirección"); + window.Notify.warning(window.Lang('address.validation.required')); return; } - + // Emitir evento al padre con la nueva dirección emit('address-created', { name: addressName.value }); - + // Limpiar el formulario addressName.value = ""; }; @@ -27,7 +27,7 @@ const handleSubmit = () => {