quick fix
This commit is contained in:
@@ -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 = {}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user