Add translation strings for toasts, update data load toasts to use generic failed to load data message

This commit is contained in:
advplyr 2024-05-13 16:58:41 -05:00
parent b8ed56e91e
commit 8c6c43657c
44 changed files with 331 additions and 46 deletions

View file

@ -310,14 +310,14 @@ export default {
.then((data) => {
this.$store.commit('setServerSettings', data.serverSettings)
if (data.updated) {
this.$toast.success('Server settings updated')
this.$toast.success(this.$strings.ToastServerSettingsUpdateSuccess)
} else {
this.$toast.info(this.$strings.MessageNoUpdatesWereNecessary)
}
})
.catch((error) => {
console.error('Failed to update server settings', error)
this.$toast.error('Failed to update server settings')
this.$toast.error(this.$strings.ToastServerSettingsUpdateFailed)
})
.finally(() => {
this.savingSettings = false
@ -347,4 +347,4 @@ export default {
padding: 2px 4px;
white-space: nowrap;
}
</style>
</style>