Add recentre and ROM test buttons to stage settings

Only shown if not using a DummyStage, as neither work meaningfully in sim
This commit is contained in:
Joe Knapper 2026-02-16 15:14:57 +00:00
parent 41c9c58f42
commit 302e510678

View file

@ -23,6 +23,36 @@
</div>
</div>
</div>
<div v-if="stageType !== 'DummyStage'" class="uk-width-large">
<h4>Stage Measurement Tools</h4>
<div class="uk-margin">
<action-button
class="uk-width-1-2"
thing="stage_measure"
action="perform_recentre"
submit-label="Recentre Stage"
:button-primary="true"
:can-terminate="true"
:requires-confirmation="true"
:confirmation-message="'Start recalibration of the stage to find the centre of the range of motion? Microscope will be locked while this runs'"
:modal-progress="true"
/>
</div>
<div class="uk-margin">
<action-button
class="uk-width-1-2"
thing="stage_measure"
action="perform_rom_test"
submit-label="Run ROM Test"
:button-primary="true"
:can-terminate="true"
:requires-confirmation="true"
:confirmation-message="'Start recalibration of the stage to find the range of motion in steps? Microscope will be locked while this runs'"
:modal-progress="true"
/>
</div>
</div>
</div>
</div>
</template>