Skip to content

Commit cc8a23c

Browse files
authored
Merge pull request #520 from openWB/feature-cards-display-theme
Feature cards display theme
2 parents 8c0d7f3 + 530744f commit cc8a23c

File tree

1 file changed

+97
-28
lines changed

1 file changed

+97
-28
lines changed

src/components/display_themes/cards/displayTheme.vue

+97-28
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Der PIN muss aus 4 bis 10 Zahlen bestehen.
4141
</template>
4242
</openwb-base-text-input>
43-
<openwb-base-heading>Ansicht "Übersicht"</openwb-base-heading>
43+
<openwb-base-heading>Ansichten</openwb-base-heading>
4444
<openwb-base-button-group-input
4545
title="Übersicht anzeigen"
4646
:model-value="displayTheme.configuration.enable_dashboard_view"
@@ -64,13 +64,12 @@
6464
]"
6565
/>
6666
<openwb-base-button-group-input
67-
v-if="displayTheme.configuration.enable_dashboard_view"
68-
title="EVU anzeigen"
69-
:model-value="displayTheme.configuration.enable_dashboard_card_grid"
67+
title="Energiefluss anzeigen"
68+
:model-value="displayTheme.configuration.enable_energy_flow_view"
7069
@update:model-value="
7170
updateConfiguration(
7271
$event,
73-
'configuration.enable_dashboard_card_grid',
72+
'configuration.enable_energy_flow_view',
7473
)
7574
"
7675
:buttons="[
@@ -87,16 +86,35 @@
8786
]"
8887
/>
8988
<openwb-base-button-group-input
90-
v-if="displayTheme.configuration.enable_dashboard_view"
91-
title="Hausverbrauch anzeigen"
92-
:model-value="
93-
displayTheme.configuration
94-
.enable_dashboard_card_home_consumption
89+
title="Ladepunkte anzeigen"
90+
:model-value="displayTheme.configuration.enable_charge_points_view"
91+
@update:model-value="
92+
updateConfiguration(
93+
$event,
94+
'configuration.enable_charge_points_view',
95+
)
9596
"
97+
:buttons="[
98+
{
99+
buttonValue: false,
100+
text: 'Aus',
101+
class: 'btn-outline-danger',
102+
},
103+
{
104+
buttonValue: true,
105+
text: 'An',
106+
class: 'btn-outline-success',
107+
},
108+
]"
109+
/>
110+
<openwb-base-button-group-input
111+
v-if="displayTheme.configuration.enable_charge_points_view == true"
112+
title="Einfache Ansicht der Ladepunkte"
113+
:model-value="displayTheme.configuration.simple_charge_point_view"
96114
@update:model-value="
97115
updateConfiguration(
98116
$event,
99-
'configuration.enable_dashboard_card_home_consumption',
117+
'configuration.simple_charge_point_view',
100118
)
101119
"
102120
:buttons="[
@@ -113,15 +131,38 @@
113131
]"
114132
/>
115133
<openwb-base-button-group-input
116-
v-if="displayTheme.configuration.enable_dashboard_view"
117-
title="Batteriespeicher anzeigen"
118-
:model-value="
119-
displayTheme.configuration.enable_dashboard_card_battery_sum
134+
title="Status anzeigen"
135+
:model-value="displayTheme.configuration.enable_status_view"
136+
@update:model-value="
137+
updateConfiguration($event, 'configuration.enable_status_view')
120138
"
139+
:buttons="[
140+
{
141+
buttonValue: false,
142+
text: 'Aus',
143+
class: 'btn-outline-danger',
144+
},
145+
{
146+
buttonValue: true,
147+
text: 'An',
148+
class: 'btn-outline-success',
149+
},
150+
]"
151+
/>
152+
<openwb-base-heading>
153+
Datenauswahl
154+
<template #help>
155+
Hier kann festgelegt werden, welche Daten in den Ansichten
156+
"Übersicht" und "Energiefluss" angezeigt werden.
157+
</template>
158+
</openwb-base-heading>
159+
<openwb-base-button-group-input
160+
title="EVU anzeigen"
161+
:model-value="displayTheme.configuration.enable_dashboard_card_grid"
121162
@update:model-value="
122163
updateConfiguration(
123164
$event,
124-
'configuration.enable_dashboard_card_battery_sum',
165+
'configuration.enable_dashboard_card_grid',
125166
)
126167
"
127168
:buttons="[
@@ -138,16 +179,15 @@
138179
]"
139180
/>
140181
<openwb-base-button-group-input
141-
v-if="displayTheme.configuration.enable_dashboard_view"
142-
title="Ladepunkte anzeigen"
182+
title="Hausverbrauch anzeigen"
143183
:model-value="
144184
displayTheme.configuration
145-
.enable_dashboard_card_charge_point_sum
185+
.enable_dashboard_card_home_consumption
146186
"
147187
@update:model-value="
148188
updateConfiguration(
149189
$event,
150-
'configuration.enable_dashboard_card_charge_point_sum',
190+
'configuration.enable_dashboard_card_home_consumption',
151191
)
152192
"
153193
:buttons="[
@@ -164,7 +204,6 @@
164204
]"
165205
/>
166206
<openwb-base-button-group-input
167-
v-if="displayTheme.configuration.enable_dashboard_view"
168207
title="PV anzeigen"
169208
:model-value="
170209
displayTheme.configuration.enable_dashboard_card_inverter_sum
@@ -188,14 +227,40 @@
188227
},
189228
]"
190229
/>
191-
<openwb-base-heading>Ansicht "Ladepunkte"</openwb-base-heading>
230+
<openwb-base-button-group-input
231+
title="Batteriespeicher anzeigen"
232+
:model-value="
233+
displayTheme.configuration.enable_dashboard_card_battery_sum
234+
"
235+
@update:model-value="
236+
updateConfiguration(
237+
$event,
238+
'configuration.enable_dashboard_card_battery_sum',
239+
)
240+
"
241+
:buttons="[
242+
{
243+
buttonValue: false,
244+
text: 'Aus',
245+
class: 'btn-outline-danger',
246+
},
247+
{
248+
buttonValue: true,
249+
text: 'An',
250+
class: 'btn-outline-success',
251+
},
252+
]"
253+
/>
192254
<openwb-base-button-group-input
193255
title="Ladepunkte anzeigen"
194-
:model-value="displayTheme.configuration.enable_charge_points_view"
256+
:model-value="
257+
displayTheme.configuration
258+
.enable_dashboard_card_charge_point_sum
259+
"
195260
@update:model-value="
196261
updateConfiguration(
197262
$event,
198-
'configuration.enable_charge_points_view',
263+
'configuration.enable_dashboard_card_charge_point_sum',
199264
)
200265
"
201266
:buttons="[
@@ -211,12 +276,16 @@
211276
},
212277
]"
213278
/>
214-
<openwb-base-heading>Ansicht "Status"</openwb-base-heading>
215279
<openwb-base-button-group-input
216-
title="Status anzeigen"
217-
:model-value="displayTheme.configuration.enable_status_view"
280+
title="Fahrzeuge anzeigen"
281+
:model-value="
282+
displayTheme.configuration.enable_dashboard_card_vehicles
283+
"
218284
@update:model-value="
219-
updateConfiguration($event, 'configuration.enable_status_view')
285+
updateConfiguration(
286+
$event,
287+
'configuration.enable_dashboard_card_vehicles',
288+
)
220289
"
221290
:buttons="[
222291
{

0 commit comments

Comments
 (0)