update
This commit is contained in:
@@ -100,6 +100,11 @@ async function stoppen() {
|
||||
catch (e) { fehler.value = String(e) } // sonst läuft der Lauf weiter, ohne Signal
|
||||
}
|
||||
|
||||
async function pausieren() {
|
||||
try { fehler.value = ''; await api.pause(topic.value); await stateLaden() }
|
||||
catch (e) { fehler.value = String(e) }
|
||||
}
|
||||
|
||||
const transferOk = ref(false) // nur im lokalen Dev-Betrieb (Server: 403)
|
||||
const uebertragung = ref('')
|
||||
|
||||
@@ -186,6 +191,8 @@ function runBadge(run) {
|
||||
</div>
|
||||
<template v-if="tab === 'board'">
|
||||
<button @click="starten" :disabled="!topic || state?.run?.status === 'running'">Start</button>
|
||||
<button class="sekundaer" title="Wartende stoppen, Laufende laufen aus — Resume via Start"
|
||||
@click="pausieren" :disabled="state?.run?.status !== 'running'">Pause</button>
|
||||
<button class="sekundaer" @click="stoppen" :disabled="state?.run?.status !== 'running'">Stop</button>
|
||||
</template>
|
||||
<template v-if="transferOk && tab === 'board'">
|
||||
|
||||
@@ -19,6 +19,7 @@ export const api = {
|
||||
start: (topic, budget) =>
|
||||
req(`/api/topics/${e(topic)}/start`, { method: 'POST', body: JSON.stringify({ budget }) }),
|
||||
stop: (topic) => req(`/api/topics/${e(topic)}/stop`, { method: 'POST', body: '{}' }),
|
||||
pause: (topic) => req(`/api/topics/${e(topic)}/pause`, { method: 'POST', body: '{}' }),
|
||||
sollReset: (topic) => req(`/api/topics/${e(topic)}/soll-reset`, { method: 'POST', body: '{}' }),
|
||||
vollReset: (topic) => req(`/api/topics/${e(topic)}/voll-reset`, { method: 'POST', body: '{}' }),
|
||||
setAuto: (topic, ebene, an) =>
|
||||
|
||||
Reference in New Issue
Block a user