From 61c8d00d95254568353aaae05b892578317481e4 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 8 Aug 2019 10:31:59 +0100 Subject: [PATCH] Fixed camera setting paload --- .../settingsComponents/cameraSettings.vue | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/components/controlComponents/settingsComponents/cameraSettings.vue b/src/components/controlComponents/settingsComponents/cameraSettings.vue index b8127113..abd26209 100644 --- a/src/components/controlComponents/settingsComponents/cameraSettings.vue +++ b/src/components/controlComponents/settingsComponents/cameraSettings.vue @@ -4,35 +4,37 @@
- +
- +
- +
-
- -
+ +
+
+ +
-
- +
+ +
-
@@ -70,7 +72,9 @@ export default { applyConfigRequest: function() { console.log("Applying config to the microscope") var payload = { - picamera_settings: {} + camera_settings: { + picamera_settings: {} + } } //if (this.shutterSpeed != this.$store.state.apiConfig.picamera_settings.shutter_speed) { @@ -86,7 +90,7 @@ export default { return this.$store.dispatch('updateConfig'); }) .then(this.updateInputValues) - .then(r=>{console.log("Updated Config: ", payload.picamera_settings)}) + .then(r=>{console.log("Updated Config: ", payload)}) .catch(error => { this.modalError(error) // Let mixin handle error }) @@ -134,7 +138,7 @@ export default { return Number(this.analogGain).toFixed(2) }, displayShutterSpeed: function () { - return (this.shutterSpeed != 0) ? this.shutterSpeed : "auto" + return (this.shutterSpeed != "0") ? this.shutterSpeed : "auto" }, recalibrateApiUri: function () { return this.$store.getters.uri + "/plugin/default/camera_calibration/recalibrate"