From 4e7aa3d1195d3a25a18a4ed763887b804ddad915 Mon Sep 17 00:00:00 2001 From: marcorv6 Date: Tue, 24 May 2022 21:05:11 -0500 Subject: [PATCH] quick fix --- components/admin/Reportes.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/admin/Reportes.vue b/components/admin/Reportes.vue index 8213671..95d55d5 100644 --- a/components/admin/Reportes.vue +++ b/components/admin/Reportes.vue @@ -162,6 +162,15 @@ export default { confirmButtonColor: '#1e3c70', }) }, + errorMessageExt() { + this.$swal({ + title: 'Asegurate de ingresar un archivo .CSV.', + type: 'error', + timer: 5000, + confirmButtonText: 'Aceptar', + confirmButtonColor: '#1e3c70', + }) + }, noDataErrorMessage() { this.$swal({ title: 'No hay datos que descargar.', @@ -179,7 +188,7 @@ export default { const extPermitidas = /(.csv)$/i if (!extPermitidas.exec(this.csv.name)) { - this.imprimirError({ message: 'Asegurate de ingresar un archivo .CSV' }) + this.errorMessageExt() this.csv = {} } },