Hide minsoc settings; will reappear later at vehicle (#4295)
This commit is contained in:
parent
3897de998a
commit
c52e2be1c2
6 changed files with 47 additions and 33 deletions
|
|
@ -5,11 +5,19 @@
|
|||
<h3 class="me-2 mb-0 text-truncate">
|
||||
{{ title || $t("main.loadpoint.fallbackName") }}
|
||||
</h3>
|
||||
<LoadpointSettingsButton :id="id" class="d-block d-sm-none" />
|
||||
<LoadpointSettingsButton
|
||||
v-if="settingsButtonVisible"
|
||||
:id="id"
|
||||
class="d-block d-sm-none"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3 d-flex align-items-center">
|
||||
<Mode class="flex-grow-1" :mode="mode" @updated="setTargetMode" />
|
||||
<LoadpointSettingsButton :id="id" class="d-none d-sm-block ms-2" />
|
||||
<LoadpointSettingsButton
|
||||
v-if="settingsButtonVisible"
|
||||
:id="id"
|
||||
class="d-none d-sm-block ms-2"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<LoadpointSettingsModal
|
||||
|
|
@ -188,6 +196,9 @@ export default {
|
|||
settingsModal: function () {
|
||||
return this.collectProps(LoadpointSettingsModal);
|
||||
},
|
||||
settingsButtonVisible: function () {
|
||||
return this.$hiddenFeatures || [0, 1, 3].includes(this.phasesConfigured);
|
||||
},
|
||||
vehicle: function () {
|
||||
return this.collectProps(Vehicle);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,11 +23,14 @@
|
|||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="container">
|
||||
<h4 class="d-flex align-items-center mb-3 mt-0 text-evcc">
|
||||
<h4
|
||||
v-if="showMinSoCSettings"
|
||||
class="d-flex align-items-center mb-3 mt-0 text-evcc"
|
||||
>
|
||||
{{ $t("main.loadpointSettings.vehicle") }}
|
||||
<shopicon-bold-car3 class="ms-2"></shopicon-bold-car3>
|
||||
</h4>
|
||||
<div class="mb-3 row">
|
||||
<div v-if="showMinSoCSettings" class="mb-3 row">
|
||||
<label
|
||||
:for="formId('minsoc')"
|
||||
class="col-sm-4 col-form-label pt-0 pt-sm-1"
|
||||
|
|
@ -271,6 +274,9 @@ export default {
|
|||
showCurrentSettings: function () {
|
||||
return this.$hiddenFeatures;
|
||||
},
|
||||
showMinSoCSettings: function () {
|
||||
return this.$hiddenFeatures;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
maxCurrent: function (value) {
|
||||
|
|
@ -323,4 +329,8 @@ export default {
|
|||
margin-left: calc(var(--bs-gutter-x) * -0.5);
|
||||
margin-right: calc(var(--bs-gutter-x) * -0.5);
|
||||
}
|
||||
|
||||
.container h4:first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -104,13 +104,6 @@ chargers:
|
|||
var lp = state.loadpoints[0];
|
||||
lp.maxcurrent = val;
|
||||
if (lp.enabled) lp.chargepower = lp.maxcurrent * 230 * lp.phases; else lp.chargepower = 0;
|
||||
phases1p3p:
|
||||
source: js
|
||||
vm: shared
|
||||
script: |
|
||||
set();
|
||||
if (val === 1) lp.phases = 1; else lp.phases = 3;
|
||||
lp.phases;
|
||||
|
||||
- name: charger_2
|
||||
type: custom
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
|
|
@ -20,8 +20,8 @@
|
|||
<meta name="theme-color" content="#020318" />
|
||||
|
||||
<title>evcc</title>
|
||||
<script type="module" crossorigin src="./assets/index.ca617d2b.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.b1f68136.css">
|
||||
<script type="module" crossorigin src="./assets/index.bf31c10e.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.9dca4fd5.css">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue