Enable cancelling moves

This enables the cancel button - it will be necessary to update `labthings-sangaboard` for this to work.
This commit is contained in:
Richard Bowman 2024-01-04 10:07:44 +00:00
parent 2bc585fe33
commit 8e2402af18

View file

@ -113,10 +113,10 @@
:submit-url="absoluteMoveUri"
:submit-data="setPosition"
:submit-label="'Move'"
:can-terminate="false"
:can-terminate="true"
:poll-interval="0.05"
@taskStarted="moveLock = true"
@finished="moveLock = false"
@finished="updatePosition(); moveLock = false"
@error="modalError"
></taskSubmitter>
</p>
@ -138,7 +138,7 @@
:button-primary="false"
:submit-on-event="'globalFastAutofocusEvent'"
@taskStarted="isAutofocusing = 1"
@finished="isAutofocusing = 0"
@finished="updatePosition(); isAutofocusing = 0"
@error="modalError"
></taskSubmitter>
</div>