quick fix

This commit is contained in:
2022-05-24 21:05:11 -05:00
parent 301be2124c
commit 4e7aa3d119
+10 -1
View File
@@ -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 = {}
}
},