Skip to content

Commit

Permalink
power limiter make fields mandtory
Browse files Browse the repository at this point in the history
  • Loading branch information
helgeerbe committed Feb 25, 2023
1 parent c2ba4a3 commit 43815f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webapp/src/views/PowerLimiterAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
<div class="input-group">
<input type="number" class="form-control" id="targetPowerConsumption"
placeholder="70" min="10" v-model="powerLimiterConfigList.target_power_consumption"
aria-describedby="targetPowerConsumptionDescription" />
aria-describedby="targetPowerConsumptionDescription" required/>
<span class="input-group-text" id="targetPowerConsumptionDescription">W</span>
</div>
</div>
</div>

<div class="row mb-3" v-show="powerLimiterConfigList.enabled">
<label for="targetPowerConsumptionHyteresis" class="col-sm-2 col-form-label">{{ $t('powerlimiteradmin.TargetPowerConsumptionHysteresis') }}:
<BIconInfoCircle v-tooltip :title="$t('powerlimiteradmin.TargetPowerConsumptionHysteresisHint')" />
<BIconInfoCircle v-tooltip :title="$t('powerlimiteradmin.TargetPowerConsumptionHysteresisHint')" required/>
</label>
<div class="col-sm-10">
<div class="input-group">
Expand All @@ -79,7 +79,7 @@
<div class="input-group">
<input type="number" class="form-control" id="inputLowerPowerLimit"
placeholder="50" min="10" v-model="powerLimiterConfigList.lower_power_limit"
aria-describedby="lowerPowerLimitDescription" />
aria-describedby="lowerPowerLimitDescription" required/>
<span class="input-group-text" id="lowerPowerLimitDescription">W</span>
</div>
</div>
Expand All @@ -91,7 +91,7 @@
<div class="input-group">
<input type="number" class="form-control" id="inputUpperPowerLimit"
placeholder="800" v-model="powerLimiterConfigList.upper_power_limit"
aria-describedby="upperPowerLimitDescription" />
aria-describedby="upperPowerLimitDescription" required/>
<span class="input-group-text" id="upperPowerLimitDescription">W</span>
</div>
</div>
Expand All @@ -116,7 +116,7 @@
<div class="col-sm-10">
<div class="input-group">
<input type="text" class="form-control" id="inputMqttTopicPowerMeter2"
placeholder="shellies/shellyem3/emeter/1/power" v-model="powerLimiterConfigList.mqtt_topic_powermeter_2" />
placeholder="shellies/shellyem3/emeter/1/power" v-model="powerLimiterConfigList.mqtt_topic_powermeter_2" required/>
</div>
</div>
</div>
Expand All @@ -126,7 +126,7 @@
<div class="col-sm-10">
<div class="input-group">
<input type="text" class="form-control" id="inputMqttTopicPowerMeter3"
placeholder="shellies/shellyem3/emeter/2/power" v-model="powerLimiterConfigList.mqtt_topic_powermeter_3" />
placeholder="shellies/shellyem3/emeter/2/power" v-model="powerLimiterConfigList.mqtt_topic_powermeter_3" required/>
</div>
</div>
</div>
Expand All @@ -136,7 +136,7 @@
<div class="col-sm-10">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="inputIsInverterBehindPowerMeter"
v-model="powerLimiterConfigList.is_inverter_behind_powermeter" />
v-model="powerLimiterConfigList.is_inverter_behind_powermeter" required/>
</div>
</div>
</div>
Expand All @@ -151,7 +151,7 @@
<div class="input-group">
<input type="number" class="form-control" id="batterySocStartThreshold"
placeholder="80" v-model="powerLimiterConfigList.battery_soc_start_threshold"
aria-describedby="batterySocStartThresholdDescription" min="0" max="100" />
aria-describedby="batterySocStartThresholdDescription" min="0" max="100" required/>
<span class="input-group-text" id="batterySocStartThresholdDescription">%</span>
</div>
</div>
Expand All @@ -163,7 +163,7 @@
<div class="input-group">
<input type="number" class="form-control" id="batterySocStopThreshold"
placeholder="20" v-model="powerLimiterConfigList.battery_soc_stop_threshold"
aria-describedby="batterySocStopThresholdDescription" min="0" max="100" />
aria-describedby="batterySocStopThresholdDescription" min="0" max="100" required/>
<span class="input-group-text" id="batterySocStopThresholdDescription">%</span>
</div>
</div>
Expand All @@ -177,7 +177,7 @@
<div class="input-group">
<input type="number" step="0.01" class="form-control" id="inputVoltageStartThreshold"
placeholder="50" v-model="powerLimiterConfigList.voltage_start_threshold"
aria-describedby="voltageStartThresholdDescription" />
aria-describedby="voltageStartThresholdDescription" required/>
<span class="input-group-text" id="voltageStartThresholdDescription">V</span>
</div>
</div>
Expand All @@ -189,7 +189,7 @@
<div class="input-group">
<input type="number" step="0.01" class="form-control" id="inputVoltageStopThreshold"
placeholder="49" v-model="powerLimiterConfigList.voltage_stop_threshold"
aria-describedby="voltageStopThresholdDescription" />
aria-describedby="voltageStopThresholdDescription" required/>
<span class="input-group-text" id="voltageStopThresholdDescription">V</span>
</div>
</div>
Expand All @@ -201,7 +201,7 @@
<div class="input-group">
<input type="number" step="0.0001" class="form-control" id="inputVoltageLoadCorrectionFactor"
placeholder="49" v-model="powerLimiterConfigList.voltage_load_correction_factor"
aria-describedby="voltageLoadCorrectionFactorDescription" />
aria-describedby="voltageLoadCorrectionFactorDescription" required/>
<span class="input-group-text" id="voltageLoadCorrectionFactorDescription">V</span>
</div>
</div>
Expand Down
Binary file modified webapp_dist/js/app.js.gz
Binary file not shown.

0 comments on commit 43815f6

Please sign in to comment.