From 4b7d6eded6c21fccfbb10e3839a66c440e6bc97e Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Tue, 24 Mar 2020 17:21:57 +0000 Subject: [PATCH 1/2] added a button to flatten the lens shading table --- .../settingsComponents/cameraSettings.vue | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/components/controlComponents/settingsComponents/cameraSettings.vue b/src/components/controlComponents/settingsComponents/cameraSettings.vue index 0e95dad7..a8b00e8c 100644 --- a/src/components/controlComponents/settingsComponents/cameraSettings.vue +++ b/src/components/controlComponents/settingsComponents/cameraSettings.vue @@ -53,20 +53,29 @@ -
+
+ +
+ +
@@ -86,7 +95,7 @@ export default { data: function() { return { settings: null, - recalibrationUri: null, + recalibrationLinks: null, isCalibrating: false }; }, @@ -102,7 +111,7 @@ export default { mounted() { this.updateSettings(); - this.updateRecalibrationUri(); + this.updateRecalibrationLinks(); }, methods: { @@ -117,7 +126,7 @@ export default { }); }, - updateRecalibrationUri: function() { + updateRecalibrationLinks: function() { axios .get(this.pluginsUri) // Get a list of plugins .then(response => { @@ -128,7 +137,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 +183,10 @@ export default { onRecalibrateError: function(error) { this.modalError(error); // Let mixin handle error + }, + + flattenLensShadingTableRequest: function() { + axios.post(this.recalibrationLinks.flatten_lens_shading_table.href) } } }; From 4784257eb16fb11de051e1ddda516a6fa3066896 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Tue, 24 Mar 2020 17:42:11 +0000 Subject: [PATCH 2/2] Added another button --- .../settingsComponents/cameraSettings.vue | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/components/controlComponents/settingsComponents/cameraSettings.vue b/src/components/controlComponents/settingsComponents/cameraSettings.vue index a8b00e8c..caf62c7a 100644 --- a/src/components/controlComponents/settingsComponents/cameraSettings.vue +++ b/src/components/controlComponents/settingsComponents/cameraSettings.vue @@ -67,16 +67,24 @@ > - -
- -
+ +
+ +
+
+ +
@@ -187,6 +195,9 @@ export default { flattenLensShadingTableRequest: function() { axios.post(this.recalibrationLinks.flatten_lens_shading_table.href) + }, + deleteLensShadingTableRequest: function() { + axios.post(this.recalibrationLinks.delete_lens_shading_table.href) } } };