mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 20:23:06 +00:00
remove session expired redirect on error
This commit is contained in:
parent
68025566d7
commit
4bb7493aa2
16 changed files with 0 additions and 27 deletions
|
@ -86,7 +86,6 @@ export default {
|
|||
.catch(() => {
|
||||
this.saving = false;
|
||||
this.$bvToast.toast('There was an error saving your note', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Note saved', { title: 'Success', variant: 'success' });
|
||||
|
|
|
@ -80,7 +80,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_TAGS_LEGACY', this.tags)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Tags updated', { title: 'Success', variant: 'success' });
|
||||
|
|
|
@ -132,12 +132,10 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -100,7 +100,6 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -120,7 +120,6 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -133,7 +132,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_TAGS_LEGACY', this.tags)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Tags updated', { title: 'Success', variant: 'success' });
|
||||
|
|
|
@ -456,7 +456,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_PROGRESSES')
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('There was an error saving your progress', { title: 'Error', variant: 'error' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Progress updated', { title: 'Success', variant: 'success' });
|
||||
|
@ -486,7 +485,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_NOTES')
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('There was an error saving your note', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Note saved', { title: 'Success', variant: 'success' });
|
||||
|
@ -500,7 +498,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_NOTES_NO_MERGE')
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('There was an error deleting your note', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Note deleted', { title: 'Success', variant: 'success' });
|
||||
|
@ -531,7 +528,6 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -551,7 +547,6 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -608,7 +603,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_PROGRESSES_NO_MERGE')
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('There was an error deleting your progress', { title: 'Error', variant: 'error' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Progress deleted', { title: 'Success', variant: 'success' });
|
||||
|
|
|
@ -98,7 +98,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_TAGS_LEGACY', this.tags)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('Tags updated', { title: 'Success', variant: 'success' });
|
||||
|
|
|
@ -131,7 +131,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_LIST_LEGACY', this.gameLists)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List deleted', {
|
||||
|
@ -145,7 +144,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_LIST_LEGACY', this.gameLists)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List saved', { title: 'success', variant: 'success' });
|
||||
|
|
|
@ -131,7 +131,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_LIST_LEGACY', this.gameLists)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List deleted', {
|
||||
|
@ -145,7 +144,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_LIST_LEGACY', this.gameLists)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List saved', { title: 'success', variant: 'success' });
|
||||
|
|
|
@ -310,7 +310,6 @@ export default {
|
|||
await this.$store.dispatch(action, this.localTags)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
const message = editing
|
||||
|
|
|
@ -234,7 +234,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_BOARD')
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List saved', {
|
||||
|
|
|
@ -110,7 +110,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_BOARD', true)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List deleted', {
|
||||
|
@ -124,7 +123,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_BOARD')
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List saved', { title: 'success', variant: 'success' });
|
||||
|
|
|
@ -132,12 +132,10 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -100,7 +100,6 @@ export default {
|
|||
})
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -310,7 +310,6 @@ export default {
|
|||
await this.$store.dispatch(action, this.localTags)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
const message = editing
|
||||
|
|
|
@ -81,7 +81,6 @@ export default {
|
|||
await this.$store.dispatch('SAVE_LIST_LEGACY', this.gameLists)
|
||||
.catch(() => {
|
||||
this.$bvToast.toast('Authentication error', { title: 'Error', variant: 'danger' });
|
||||
this.$router.push({ name: 'sessionExpired' });
|
||||
});
|
||||
|
||||
this.$bvToast.toast('List saved', {
|
||||
|
|
Loading…
Reference in a new issue