Remove datapoint from trigger

This commit is contained in:
Magnus Åhall 2024-05-04 22:07:41 +02:00
parent ac7ffcda23
commit 7990f1f419
5 changed files with 52 additions and 11 deletions

View file

@ -2,7 +2,7 @@
<script type="module" defer>
import {UI, Trigger} from "/js/{{ .VERSION }}/trigger_edit.mjs"
window._ui = new UI()
window._ui = new UI({{ .VERSION }})
let trigger = new Trigger(
{{ .Data.Trigger.ID }},
'{{ .Data.Trigger.Name }}',
@ -29,8 +29,7 @@
<div class="label">Datapoints</div>
<div class="datapoints" style="margin-top: 4px">
<div><a onclick="_ui.addDatapoint()">Add</a></div>
<div></div>
<div style="grid-column: 1 / -1"><a onclick="_ui.addDatapoint()">Add</a></div>
</div>
<div class="label">Expression</div>