webapi: Maintenance: Show language independent webapi messages
This commit is contained in:
parent
af93e5d77e
commit
7a5d8dd251
@ -46,7 +46,9 @@
|
||||
"5001": "@:apiresponse.2001",
|
||||
"5002": "Das Limit muss zwischen 1 und {max} sein!",
|
||||
"5003": "Ungültiten Typ angegeben!",
|
||||
"5004": "Ungültigen Inverter angegeben!"
|
||||
"5004": "Ungültigen Inverter angegeben!",
|
||||
"6001": "Neustart durchgeführt!",
|
||||
"6002": "Neustart abgebrochen!"
|
||||
},
|
||||
"home": {
|
||||
"LiveData": "Live Daten",
|
||||
|
||||
@ -46,7 +46,9 @@
|
||||
"5001": "@:apiresponse.2001",
|
||||
"5002": "Limit must between 1 and {max}!",
|
||||
"5003": "Invalid type specified!",
|
||||
"5004": "Invalid inverter specified!"
|
||||
"5004": "Invalid inverter specified!",
|
||||
"6001": "Reboot triggered!",
|
||||
"6002": "Reboot cancled!"
|
||||
},
|
||||
"home": {
|
||||
"LiveData": "Live Data",
|
||||
|
||||
@ -79,7 +79,7 @@ export default defineComponent({
|
||||
})
|
||||
.then((response) => handleResponse(response, this.$emitter, this.$router))
|
||||
.then((data) => {
|
||||
this.alertMessage = data.message;
|
||||
this.alertMessage = this.$t('apiresponse.' + data.code, data.param);
|
||||
this.alertType = data.type;
|
||||
this.showAlert = true;
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user