Commit cadd708c authored by gj4210's avatar gj4210 👽
Browse files

UPD: Error messages show up correctly

parent 34eee5d9
Pipeline #64772 passed with stages
in 5 minutes and 56 seconds
......@@ -459,8 +459,8 @@
}).then(() => {
this.$bvModal.hide('modal-create-account')
this.fetchData()
}).catch(error => { //TODO : return error message instead of code
this.modal_alert_content = error.message
}).catch(error => {
this.modal_alert_content = error.response.data.error.type.text_descr
this.show_modal_alert = true
})
},
......@@ -474,7 +474,7 @@
this.$bvModal.hide('modal-edit-account')
this.fetchData()
}).catch(error => {
this.modal_alert_content = error.message
this.modal_alert_content = error.response.data.error.type.text_descr
this.show_modal_alert = true
})
},
......@@ -485,7 +485,7 @@
}).then(() => {
this.$bvModal.hide('modal-edit-account')
}).catch(error => {
this.modal_alert_content = error.message
this.modal_alert_content = error.response.data.error.type.text_descr
this.show_modal_alert = true
})
},
......@@ -500,7 +500,7 @@
this.$bvModal.show('modal-token')
this.fetchData()
}).catch(error => {
this.modal_alert_content = error.message
this.modal_alert_content = error.response.data.error.type.text_descr
this.show_modal_alert = true
})
},
......@@ -514,7 +514,7 @@
this.$bvModal.hide('modal-edit-token')
this.fetchData()
}).catch(error => {
this.modal_alert_content = error.message
this.modal_alert_content = error.response.data.error.type.text_descr
this.show_modal_alert = true
})
},
......@@ -525,7 +525,7 @@
this.$bvModal.hide('modal-edit-token')
this.fetchData()
}).catch(error => {
this.modal_alert_content = error.message
this.modal_alert_content = error.response.data.error.type.text_descr
this.show_modal_alert = true
})
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment