Updated API to run with server 1.1.x
This commit is contained in:
parent
2850eecf7a
commit
ee91e11853
2 changed files with 25 additions and 16 deletions
|
|
@ -52,14 +52,14 @@ export default {
|
|||
data: function () {
|
||||
return {
|
||||
microscopeName: this.$store.state.apiConfig.name,
|
||||
stageBacklash: this.$store.state.apiConfig.backlash
|
||||
stageBacklash: this.$store.state.apiConfig.stage_settings.backlash
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
updateInputValues: function () {
|
||||
this.microscopeName = this.$store.state.apiConfig.name;
|
||||
this.stageBacklash = this.$store.state.apiConfig.backlash
|
||||
this.stageBacklash = this.$store.state.apiConfig.stage_settings.backlash
|
||||
},
|
||||
|
||||
applyConfigRequest: function() {
|
||||
|
|
@ -69,8 +69,8 @@ export default {
|
|||
payload.name = this.microscopeName
|
||||
};
|
||||
|
||||
if (this.stageBacklash != this.$store.state.apiConfig.backlash) {
|
||||
payload.backlash = this.stageBacklash
|
||||
if (this.stageBacklash != this.$store.state.apiConfig.stage_settings.backlash) {
|
||||
payload.stage_settings.backlash = this.stageBacklash
|
||||
}
|
||||
|
||||
// Send request to update config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue