Fix lint warnings
This commit is contained in:
parent
c085d2c0ac
commit
a5da5241ae
6 changed files with 29 additions and 31 deletions
|
|
@ -26,7 +26,7 @@
|
|||
>
|
||||
Download Calibration Data
|
||||
</button>
|
||||
<div v-if="this.csmMatrix != 'undefined'" style="margin:10px;">
|
||||
<div v-if="csmMatrix != 'undefined'" style="margin:10px;">
|
||||
<details
|
||||
><summary>Calibration Details</summary>
|
||||
<strong>CSM calculated for images with a resolution of {{ csmResolution }}</strong>
|
||||
|
|
|
|||
|
|
@ -3,29 +3,28 @@
|
|||
The microscope stage is a <b>{{ stageType }}</b>
|
||||
<div>
|
||||
<div class="uk-margin">
|
||||
<p>Your z motor is currently {{ z_inverted }} inverted.</p>
|
||||
<p>
|
||||
<br>
|
||||
Your z motor is currently {{ this.z_inverted }} inverted.
|
||||
<br>
|
||||
<br>
|
||||
We expect that moving in +z:
|
||||
We expect that moving in +z:
|
||||
</p>
|
||||
<ul>
|
||||
<li> Moves your objective up, towards the sample and illumination</li>
|
||||
<li> Turns the exposed z gear anti-clockwise (when viewed from above)</li>
|
||||
<li>Moves your objective up, towards the sample and illumination</li>
|
||||
<li>Turns the exposed z gear anti-clockwise (when viewed from above)</li>
|
||||
</ul>
|
||||
If this is not the case, click the button below to switch.
|
||||
<p>
|
||||
If this is not the case, click the button below to switch.
|
||||
</p>
|
||||
<div class="uk-margin">
|
||||
<div class="uk-margin">
|
||||
<action-button
|
||||
class="uk-width-1-2"
|
||||
thing="stage"
|
||||
action="invert_axis_direction"
|
||||
:submit-data="{ axis: 'z' }"
|
||||
submit-label="Invert z"
|
||||
@response=readAxis()
|
||||
/>
|
||||
</div>
|
||||
<action-button
|
||||
class="uk-width-1-2"
|
||||
thing="stage"
|
||||
action="invert_axis_direction"
|
||||
:submit-data="{ axis: 'z' }"
|
||||
submit-label="Invert z"
|
||||
@response="readAxis()"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -51,23 +50,20 @@ export default {
|
|||
computed: {
|
||||
stageType: function() {
|
||||
return this.thingDescription("stage").title;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods:{
|
||||
methods: {
|
||||
visibilityChanged(isVisible) {
|
||||
if (isVisible) {
|
||||
this.readAxis();
|
||||
}
|
||||
},
|
||||
async readAxis() {
|
||||
let axes_inverted = await this.readThingProperty(
|
||||
"stage",
|
||||
"axis_inverted"
|
||||
);
|
||||
this.z_inverted = axes_inverted['z'] ? "" : "not ";
|
||||
}
|
||||
}
|
||||
let axes_inverted = await this.readThingProperty("stage", "axis_inverted");
|
||||
this.z_inverted = axes_inverted["z"] ? "" : "not ";
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue