Merge branch 'stage-setting-buttons' into 'v3'

Add recentre and ROM test buttons to stage settings

Closes #502

See merge request openflexure/openflexure-microscope-server!482
This commit is contained in:
Julian Stirling 2026-02-18 16:46:20 +00:00
commit 6f997cc990
2 changed files with 41 additions and 6 deletions

View file

@ -23,6 +23,38 @@
</div>
</div>
</div>
<div v-if="stageMeasureAvailable" 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?<br><br>Calibration requires a large, dense, flat sample with a variety of features.<br>Microscope will be locked while this runs'"
:modal-progress="true"
:stream-with-modal="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?<br><br>Calibration requires a large, dense, flat sample with a variety of features.<br>Microscope will be locked while this runs'"
:modal-progress="true"
:stream-with-modal="true"
/>
</div>
</div>
</div>
</div>
</template>
@ -48,6 +80,9 @@ export default {
stageType: function () {
return this.thingDescription("stage").title;
},
stageMeasureAvailable() {
return this.thingAvailable("stage_measure");
},
},
mounted() {