webapi: Limit: Show language independent webapi messages
This commit is contained in:
parent
9fd044f74f
commit
fb35e95f3c
@ -42,7 +42,11 @@
|
|||||||
"4005": "Ungültige ID angegeben!",
|
"4005": "Ungültige ID angegeben!",
|
||||||
"4006": "Ungültige Anzahl an Kanalwerten übergeben!",
|
"4006": "Ungültige Anzahl an Kanalwerten übergeben!",
|
||||||
"4007": "Wechselrichter geändert!",
|
"4007": "Wechselrichter geändert!",
|
||||||
"4008": "Wechselrichter gelöscht!"
|
"4008": "Wechselrichter gelöscht!",
|
||||||
|
"5001": "@:apiresponse.2001",
|
||||||
|
"5002": "Das Limit muss zwischen 1 und {max} sein!",
|
||||||
|
"5003": "Ungültiten Typ angegeben!",
|
||||||
|
"5004": "Ungültigen Inverter angegeben!"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"LiveData": "Live Daten",
|
"LiveData": "Live Daten",
|
||||||
|
|||||||
@ -42,7 +42,11 @@
|
|||||||
"4005": "Invalid ID specified!",
|
"4005": "Invalid ID specified!",
|
||||||
"4006": "Invalid amount of max channel setting given!",
|
"4006": "Invalid amount of max channel setting given!",
|
||||||
"4007": "Inverter changed!",
|
"4007": "Inverter changed!",
|
||||||
"4008": "Inverter deleted!"
|
"4008": "Inverter deleted!",
|
||||||
|
"5001": "@:apiresponse.2001",
|
||||||
|
"5002": "Limit must between 1 and {max}!",
|
||||||
|
"5003": "Invalid type specified!",
|
||||||
|
"5004": "Invalid inverter specified!"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"LiveData": "Live Data",
|
"LiveData": "Live Data",
|
||||||
|
|||||||
@ -584,7 +584,7 @@ export default defineComponent({
|
|||||||
if (response.type == "success") {
|
if (response.type == "success") {
|
||||||
this.limitSettingView.hide();
|
this.limitSettingView.hide();
|
||||||
} else {
|
} else {
|
||||||
this.alertMessageLimit = response.message;
|
this.alertMessageLimit = this.$t('apiresponse.' + response.code, response.param);
|
||||||
this.alertTypeLimit = response.type;
|
this.alertTypeLimit = response.type;
|
||||||
this.showAlertLimit = true;
|
this.showAlertLimit = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user