Handle HTTP 500

This commit is contained in:
portree_kid 2020-03-29 14:55:18 +02:00
parent 821da07c4e
commit a4239d385b

View File

@ -60,8 +60,7 @@
console.log(e);
if (e.srcElement.status===500) {
parent.$refs.upload.message == e.srcElement.statusMessage
}
if(JSON.parse(e.srcElement.response).message === `${this.icao} Imported Successfully`) {
} else if(JSON.parse(e.srcElement.response).message.match('[A-Z0-9]* Imported Successfully')) {
Vue.set(parent, 'uploadVisible', false)
} else if(JSON.parse(e.srcElement.response).message === 'XML Errors') {
var response = JSON.parse(e.srcElement.response);