Skip to content

Commit

Permalink
Battery control no longer experimental (#11378)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored Jan 1, 2024
1 parent fd937c6 commit 14b037b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 35 deletions.
46 changes: 20 additions & 26 deletions assets/js/components/BatterySettingsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,33 +224,27 @@
</p>
</div>
</div>
<div v-if="$hiddenFeatures()">
<FormRow
v-if="controllable"
id="batteryDischargeControl"
:label="`${$t('batterySettings.control')}`"
>
<div class="form-check form-switch col-form-label">
<input
id="batteryDischargeControl"
:checked="batteryDischargeControl"
class="form-check-input"
type="checkbox"
role="switch"
@change="changeDischargeControl"
/>
<div class="form-check-label">
<label for="batteryDischargeControl">
{{ $t("batterySettings.discharge") }}
<span title="experimental">🧪</span>
</label>
</div>
<FormRow
v-if="controllable"
id="batteryDischargeControl"
:label="`${$t('batterySettings.control')}`"
>
<div class="form-check form-switch col-form-label">
<input
id="batteryDischargeControl"
:checked="batteryDischargeControl"
class="form-check-input"
type="checkbox"
role="switch"
@change="changeDischargeControl"
/>
<div class="form-check-label">
<label for="batteryDischargeControl">
{{ $t("batterySettings.discharge") }}
</label>
</div>
</FormRow>
<p v-else>
<small>{{ $t("batterySettings.notControllable") }}</small>
</p>
</div>
</div>
</FormRow>
</div>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion i18n/da.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "starter automatisk"
legendTopName = "batteri understøttet opladning"
legendTopSubline = "uden afbrydelser"
modalTitle = "batteri indstillinger"
notControllable = "Indstilling af batteriet er ikke mulig for dette batteri"

[batterySettings.bufferStart]
full = "næsten fyldt"
Expand Down
1 change: 0 additions & 1 deletion i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "startet automatisch"
legendTopName = "Batterieunterstütztes Laden"
legendTopSubline = "ohne Unterbrechungen"
modalTitle = "Batterieeinstellungen"
notControllable = "Batteriesteuerung ist für diesen Speicher nicht verfügbar."

[batterySettings.bufferStart]
full = "wenn fast voll"
Expand Down
1 change: 0 additions & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "starts automatically"
legendTopName = "battery supported charging"
legendTopSubline = "without interruptions"
modalTitle = "Battery settings"
notControllable = "Battery control is not available for this battery."

[batterySettings.bufferStart]
full = "when nearly full"
Expand Down
1 change: 0 additions & 1 deletion i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "inicio automático"
legendTopName = "carga soportada por bateria"
legendTopSubline = "sin interrupciones"
modalTitle = "Configuración de batería"
notControllable = "El control de la batería no está disponible para esta batería"

[batterySettings.bufferStart]
full = "cuando está casi llena"
Expand Down
1 change: 0 additions & 1 deletion i18n/lt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "startuoja automatiškai"
legendTopName = "kaupiklis padeda įkrauti"
legendTopSubline = "be pertraukų"
modalTitle = "Kaupiklio nustatymai"
notControllable = "Šiam kaupikliui valdymo nėra."

[batterySettings.bufferStart]
full = "kai beveik pilnas"
Expand Down
1 change: 0 additions & 1 deletion i18n/pt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "inicio automatico"
legendTopName = "carregamento suportado por bateria"
legendTopSubline = "sem interrupções"
modalTitle = "Configuraçao da bateria"
notControllable = "O controle de bateria não está disponível para esta bateria."

[batterySettings.bufferStart]
full = "quando quase cheio"
Expand Down
1 change: 0 additions & 1 deletion i18n/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "запускается автоматически"
legendTopName = "зарядка с поддержкой от аккумулятора"
legendTopSubline = "без перебоев"
modalTitle = "Настройки батареи"
notControllable = "Управление батарей недоступно для этой батареи"

[batterySettings.bufferStart]
full = "когда почти полная"
Expand Down
1 change: 0 additions & 1 deletion i18n/sl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "samodejno se zažene"
legendTopName = "polnjenje, ki ga podpira baterija"
legendTopSubline = "brez prekinitev"
modalTitle = "Nastavitve baterije"
notControllable = "Nadzor baterije ni na voljo za to baterijo."

[batterySettings.bufferStart]
full = "ko je skoraj poln"
Expand Down
1 change: 0 additions & 1 deletion i18n/sv.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ legendTopAutostart = "startar automatiskt"
legendTopName = "laddning med batteristöd"
legendTopSubline = "utan avbrott"
modalTitle = "Batteriinställningar"
notControllable = "Inställning ej möjligt för detta batteri"

[batterySettings.bufferStart]
full = "när det är nästan fullt"
Expand Down

0 comments on commit 14b037b

Please sign in to comment.