From 8e2402af18c44dde9354ef9bb525fadb81302a3a Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 4 Jan 2024 10:07:44 +0000 Subject: [PATCH] Enable cancelling moves This enables the cancel button - it will be necessary to update `labthings-sangaboard` for this to work. --- .../navigateComponents/paneNavigate.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue b/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue index 2a908bb6..18204840 100644 --- a/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue +++ b/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue @@ -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" >

@@ -138,7 +138,7 @@ :button-primary="false" :submit-on-event="'globalFastAutofocusEvent'" @taskStarted="isAutofocusing = 1" - @finished="isAutofocusing = 0" + @finished="updatePosition(); isAutofocusing = 0" @error="modalError" >