webapi: Ntp: Show language independent webapi messages

This commit is contained in:
Thomas Basler
2022-12-23 20:26:25 +01:00
parent 6ad7e971b4
commit ea96051203
3 changed files with 25 additions and 5 deletions

View File

@@ -184,7 +184,7 @@ export default defineComponent({
.then((response) => handleResponse(response, this.$emitter, this.$router))
.then(
(response) => {
this.alertMessage = response.message;
this.alertMessage = this.$t('apiresponse.' + response.code, response.param);
this.alertType = response.type;
this.showAlert = true;
}
@@ -207,7 +207,7 @@ export default defineComponent({
.then((response) => handleResponse(response, this.$emitter, this.$router))
.then(
(response) => {
this.alertMessage = response.message;
this.alertMessage = this.$t('apiresponse.' + response.code, response.param);
this.alertType = response.type;
this.showAlert = true;
}