Minor camera settings layout improvements

This commit is contained in:
Joel Collins 2020-03-30 13:43:44 +01:00
parent f11b4cc264
commit 01207b4298

View file

@ -47,10 +47,13 @@
<button <button
type="submit" type="submit"
class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1" class="uk-button uk-button-primary uk-form-small uk-margin-small uk-width-1-1"
> >
Apply Settings Apply Settings
</button> </button>
</form>
<hr />
<!--Show auto calibrate if default plugin is enabled--> <!--Show auto calibrate if default plugin is enabled-->
<div v-if="'recalibrate' in recalibrationLinks" class="uk-margin-small"> <div v-if="'recalibrate' in recalibrationLinks" class="uk-margin-small">
@ -67,19 +70,25 @@
> >
</taskSubmitter> </taskSubmitter>
</div> </div>
</form>
<div v-if="'flatten_lens_shading_table' in recalibrationLinks" class="uk-margin-small"> <div
v-if="'flatten_lens_shading_table' in recalibrationLinks"
class="uk-margin-small"
>
<button <button
class="uk-button uk-button-danger uk-form-small uk-float-right uk-margin-small uk-margin-remove-bottom uk-width-1-1" class="uk-button uk-button-danger uk-form-small uk-width-1-1"
@click="flattenLensShadingTableRequest" @click="flattenLensShadingTableRequest"
> >
Disable flat-field correction Disable flat-field correction
</button> </button>
</div> </div>
<div v-if="'delete_lens_shading_table' in recalibrationLinks" class="uk-margin-small uk-margin-remove-top">
<div
v-if="'delete_lens_shading_table' in recalibrationLinks"
class="uk-margin-small"
>
<button <button
class="uk-button uk-button-danger uk-form-small uk-float-right uk-margin-small uk-width-1-1" class="uk-button uk-button-danger uk-form-small uk-width-1-1"
@click="deleteLensShadingTableRequest" @click="deleteLensShadingTableRequest"
> >
Adaptive flat-field correction Adaptive flat-field correction
@ -147,7 +156,7 @@ export default {
// Get plugin action link // Get plugin action link
this.recalibrationLinks = foundExtension.links; this.recalibrationLinks = foundExtension.links;
} else { } else {
this.recalibrationLinks = {} this.recalibrationLinks = {};
} }
}) })
.catch(error => { .catch(error => {
@ -194,10 +203,10 @@ export default {
}, },
flattenLensShadingTableRequest: function() { flattenLensShadingTableRequest: function() {
axios.post(this.recalibrationLinks.flatten_lens_shading_table.href) axios.post(this.recalibrationLinks.flatten_lens_shading_table.href);
}, },
deleteLensShadingTableRequest: function() { deleteLensShadingTableRequest: function() {
axios.post(this.recalibrationLinks.delete_lens_shading_table.href) axios.post(this.recalibrationLinks.delete_lens_shading_table.href);
} }
} }
}; };