All CSM details in a list, ensure details only show when defined, disable download option if calibration undefined
This commit is contained in:
parent
a267b82311
commit
89f318f982
1 changed files with 15 additions and 9 deletions
|
|
@ -20,23 +20,27 @@
|
||||||
v-show="showExtraSettings"
|
v-show="showExtraSettings"
|
||||||
type="button"
|
type="button"
|
||||||
class="uk-button uk-button-default uk-width-1-1"
|
class="uk-button uk-button-default uk-width-1-1"
|
||||||
|
:disabled="!csmMatrix"
|
||||||
|
:class="{ 'uk-disabled': !csmMatrix }"
|
||||||
@click="getCalibrationData()"
|
@click="getCalibrationData()"
|
||||||
>
|
>
|
||||||
Download Calibration Data
|
Download Calibration Data
|
||||||
</button>
|
</button>
|
||||||
<div v-if="csmMatrix != 'undefined'" style="margin: 10px">
|
<div v-if="csmMatrix" style="margin: 10px">
|
||||||
<details>
|
<details>
|
||||||
<summary>Calibration Details</summary>
|
<summary>Calibration Details</summary>
|
||||||
<strong>CSM calculated for images with a resolution of:</strong>
|
|
||||||
<br />
|
|
||||||
<matrixDisplay :matrix="csmResolution" :bracket-height="1.5" />
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Current CSM Matrix:
|
<strong>Current CSM Matrix:</strong>
|
||||||
<br />
|
<br />
|
||||||
<matrixDisplay :matrix="csmMatrix" />
|
<matrixDisplay :matrix="csmMatrix" />
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
CSM calculated for images with a resolution of:
|
||||||
|
<br />
|
||||||
|
<matrixDisplay :matrix="csmResolution" :bracket-height="1.5" />
|
||||||
|
</li>
|
||||||
|
|
||||||
<li>Pixels per motor step: {{ csmRatio }}</li>
|
<li>Pixels per motor step: {{ csmRatio }}</li>
|
||||||
<li>
|
<li>
|
||||||
Full field of view in motor steps:
|
Full field of view in motor steps:
|
||||||
|
|
@ -46,6 +50,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
|
<p v-else><strong>No Calibration Available</strong></p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -72,9 +77,10 @@ export default {
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
csmMatrix: "undefined",
|
csmMatrix: undefined,
|
||||||
csmResolution: "undefined",
|
csmResolution: undefined,
|
||||||
csmRatio: "undefined",
|
csmRatio: undefined,
|
||||||
|
csmFOV: undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue