Change: chapters remove toast

This commit is contained in:
Nicholas Wallace 2024-08-30 10:19:04 -07:00
parent 9b6a20aeca
commit f99e01984d
3 changed files with 5 additions and 3 deletions

View file

@ -290,7 +290,7 @@ export default {
this.$axios
.$post(`/api/sessions/batch/delete`, payload)
.then(() => {
this.$toast.success('Sessions removed')
this.$toast.success(this.$strings.ToastSessionsRemoved)
if (isAllSessions) {
// If all sessions were removed from the current page then go to the previous page
if (this.currentPage > 0) {
@ -303,7 +303,7 @@ export default {
}
})
.catch((error) => {
const errorMsg = error.response?.data || 'Failed to remove sessions'
const errorMsg = error.response?.data || this.$strings.ToastRemoveFailed
this.$toast.error(errorMsg)
})
.finally(() => {