Changeset 427732b in byjove
- Timestamp:
- 07/26/2022 08:48:22 PM (6 months ago)
- Branches:
- master
- Children:
- 3392f8c
- Parents:
- 31cebd2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/components/model-crud/ByjoveModelCrud.vue
r31cebd2 r427732b 513 513 } 514 514 }, response => { 515 if (response.status == 403) { // forbidden ; redirect to model index515 if (response.status == 403) { // forbidden 516 516 this.$buefy.toast.open({ 517 517 message: "You do not have permission to access that page.", 518 518 type: 'is-danger', 519 519 }) 520 this.$router.push(this.getModelPathPrefix() + '/') 521 } else { 520 } else if (response.status == 404) { // notfound 521 this.$buefy.toast.open({ 522 message: `The requested ${this.getModelTitle()} was not found.`, 523 type: 'is-danger', 524 }) 525 } else { // other error 522 526 this.$buefy.toast.open({ 523 527 message: "Failed to fetch page data!", … … 525 529 }) 526 530 } 531 // redirect to model index 532 this.$router.push(this.getIndexURL()) 527 533 }) 528 534
Note: See TracChangeset
for help on using the changeset viewer.