Skip to content

Commit dbef7d8

Browse files
authored
Merge pull request #169 from benderl/dev
separate normal update and branch/tag switch
2 parents 78b6c6f + 31b47cb commit dbef7d8

File tree

1 file changed

+46
-28
lines changed

1 file changed

+46
-28
lines changed

src/views/System.vue

Lines changed: 46 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -102,39 +102,15 @@
102102
<form name="updateForm">
103103
<openwb-base-card
104104
title="Aktualisierung"
105+
subtype="success"
105106
:collapsible="true"
106107
:collapsed="true"
107108
>
108109
<openwb-base-alert subtype="danger">
109110
Nach einem Update wird die Ladestation direkt neu
110-
gestartet!
111+
gestartet! Es werden alle lokalen Änderungen mit dem
112+
Update verworfen!
111113
</openwb-base-alert>
112-
<openwb-base-alert subtype="warning">
113-
<p>
114-
Es werden alle lokalen Änderungen mit dem Update
115-
verworfen!
116-
</p>
117-
ToDo:
118-
<ul>
119-
<li>allow branch selection</li>
120-
<li>allow tag selection (no downgrade!)</li>
121-
</ul>
122-
</openwb-base-alert>
123-
<openwb-base-select-input
124-
title="Entwicklungszweig"
125-
:options="getBranchOptions()"
126-
:model-value="
127-
$store.state.mqtt['openWB/system/current_branch']
128-
"
129-
@update:model-value="
130-
updateState('openWB/system/current_branch', $event)
131-
"
132-
/>
133-
<openwb-base-select-input
134-
title="Tag"
135-
:options="getBranchTagOptions()"
136-
v-model="selectedTag"
137-
/>
138114
<template #footer>
139115
<div class="row justify-content-center">
140116
<div
@@ -152,7 +128,7 @@
152128
branch: $store.state.mqtt[
153129
'openWB/system/current_branch'
154130
],
155-
tag: selectedTag,
131+
tag: '*HEAD*',
156132
})
157133
"
158134
>
@@ -163,6 +139,48 @@
163139
/>
164140
</openwb-base-click-button>
165141
</div>
142+
</div>
143+
</template>
144+
</openwb-base-card>
145+
</form>
146+
<form name="releaseChangeForm">
147+
<openwb-base-card
148+
title="Entwicklungszweig"
149+
subtype="danger"
150+
:collapsible="true"
151+
:collapsed="true"
152+
>
153+
<openwb-base-alert subtype="danger">
154+
Nach einem Wechsel wird die Ladestation direkt neu
155+
gestartet! Es werden alle lokalen Änderungen mit dem
156+
Wechsel verworfen!
157+
</openwb-base-alert>
158+
<openwb-base-alert subtype="warning">
159+
Das ist eine experimentelle Option! Verwendung auf
160+
eigene Gefahr. Im schlimmsten Fall muss das system neu
161+
installiert werden!<br />
162+
ToDo:
163+
<ul>
164+
<li>do not allow downgrade</li>
165+
</ul>
166+
</openwb-base-alert>
167+
<openwb-base-select-input
168+
title="Entwicklungszweig"
169+
:options="getBranchOptions()"
170+
:model-value="
171+
$store.state.mqtt['openWB/system/current_branch']
172+
"
173+
@update:model-value="
174+
updateState('openWB/system/current_branch', $event)
175+
"
176+
/>
177+
<openwb-base-select-input
178+
title="Tag"
179+
:options="getBranchTagOptions()"
180+
v-model="selectedTag"
181+
/>
182+
<template #footer>
183+
<div class="row justify-content-center">
166184
<div
167185
class="col-md-4 d-flex py-1 justify-content-center"
168186
>

0 commit comments

Comments
 (0)