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)
}
}
};