Merge branch 'fewer-ui-assumptions' into 'v3'

UI customises to available Things

Closes #510 and #385

See merge request openflexure/openflexure-microscope-server!435
This commit is contained in:
Julian Stirling 2025-11-11 14:36:22 +00:00
commit 5074f75442
27 changed files with 886 additions and 811 deletions

View file

@ -78,13 +78,11 @@ export default {
const calibrateableThings = Object.keys(this.availableCalibrationTasks);
for (const name of calibrateableThings) {
try {
if (this.thingPropertyAvailable(name, "calibration_required")) {
const thingNeedsCal = await this.readThingProperty(name, "calibration_required");
if (thingNeedsCal) {
needsCalibration.push(name);
}
} catch (e) {
console.error(`${name}: missing calibration_required property`, e);
}
}