Mercurial > gemma
comparison client/src/components/importoverview/ImportOverview.vue @ 4869:6b054b91d9b2
backend not reachable as error message etd. Login adjusted
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 19 Dec 2019 09:35:14 +0100 |
parents | 008bc1ae8897 |
children | e89c1140f0a8 |
comparison
equal
deleted
inserted
replaced
4868:008bc1ae8897 | 4869:6b054b91d9b2 |
---|---|
435 this.loading = false; | 435 this.loading = false; |
436 } | 436 } |
437 }) | 437 }) |
438 .catch(error => { | 438 .catch(error => { |
439 this.loading = false; | 439 this.loading = false; |
440 let message = "Problems with backend"; | 440 let message = "Backend not reachable"; |
441 if (error.response) { | 441 if (error.response) { |
442 const { status, data } = error.response; | 442 const { status, data } = error.response; |
443 message = `${status}: ${data.message || data}`; | 443 message = `${status}: ${data.message || data}`; |
444 } | 444 } |
445 displayError({ | 445 displayError({ |
507 buttons: [{ text: "Ok", action: null, bold: true }] | 507 buttons: [{ text: "Ok", action: null, bold: true }] |
508 } | 508 } |
509 }); | 509 }); |
510 }) | 510 }) |
511 .catch(error => { | 511 .catch(error => { |
512 let message = "Problems with backend"; | 512 let message = "Backend not reachable"; |
513 if (error.response) { | 513 if (error.response) { |
514 const { status, data } = error.response; | 514 const { status, data } = error.response; |
515 message = `${status}: ${data.message || data}`; | 515 message = `${status}: ${data.message || data}`; |
516 } | 516 } |
517 displayError({ | 517 displayError({ |
529 } | 529 } |
530 }, | 530 }, |
531 mounted() { | 531 mounted() { |
532 this.loadUpdatedLogs(); | 532 this.loadUpdatedLogs(); |
533 this.$store.dispatch("usermanagement/loadUsers").catch(error => { | 533 this.$store.dispatch("usermanagement/loadUsers").catch(error => { |
534 let message = "Problems with backend"; | 534 let message = "Backend not reachable"; |
535 if (error.response) { | 535 if (error.response) { |
536 const { status, data } = error.response; | 536 const { status, data } = error.response; |
537 message = `${status}: ${data.message || data}`; | 537 message = `${status}: ${data.message || data}`; |
538 } | 538 } |
539 displayError({ | 539 displayError({ |