diff --git a/src/components/viewComponents/settingsComponents/cameraSettings.vue b/src/components/viewComponents/settingsComponents/cameraSettings.vue index 0e95dad7..caf62c7a 100644 --- a/src/components/viewComponents/settingsComponents/cameraSettings.vue +++ b/src/components/viewComponents/settingsComponents/cameraSettings.vue @@ -53,14 +53,14 @@ -
+
+ +
+ +
+
+ +
@@ -86,7 +103,7 @@ export default { data: function() { return { settings: null, - recalibrationUri: null, + recalibrationLinks: null, isCalibrating: false }; }, @@ -102,7 +119,7 @@ export default { mounted() { this.updateSettings(); - this.updateRecalibrationUri(); + this.updateRecalibrationLinks(); }, methods: { @@ -117,7 +134,7 @@ export default { }); }, - updateRecalibrationUri: function() { + updateRecalibrationLinks: function() { axios .get(this.pluginsUri) // Get a list of plugins .then(response => { @@ -128,7 +145,9 @@ export default { // if AutocalibrationPlugin is enabled if (foundExtension) { // Get plugin action link - this.recalibrationUri = foundExtension.links.recalibrate.href; + this.recalibrationLinks = foundExtension.links; + } else { + this.recalibrationLinks = {} } }) .catch(error => { @@ -172,6 +191,13 @@ export default { onRecalibrateError: function(error) { this.modalError(error); // Let mixin handle error + }, + + flattenLensShadingTableRequest: function() { + axios.post(this.recalibrationLinks.flatten_lens_shading_table.href) + }, + deleteLensShadingTableRequest: function() { + axios.post(this.recalibrationLinks.delete_lens_shading_table.href) } } };