webapp: Only allow max_power in input field if available

This commit is contained in:
Thomas Basler 2022-10-18 22:38:04 +02:00
parent f9221606c6
commit c2c57e33c3

View File

@ -586,7 +586,7 @@ export default defineComponent({
} else {
this.targetLimitTypeText = "Absolute (W)";
this.targetLimitMin = 10;
this.targetLimitMax = 1500;
this.targetLimitMax = (this.currentLimitList.max_power > 0 ? this.currentLimitList.max_power : 1500);
}
this.targetLimitType = type;
},