Loading openflexure_microscope/api/static/src/components/viewComponents/settingsComponents/stageSettings.vue +73 −71 Original line number Diff line number Diff line Loading @@ -14,7 +14,10 @@ </select> </div> <div> <button type="submit" class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1"> <button type="submit" class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1" > Change stage type </button> </div> Loading @@ -28,7 +31,6 @@ </template> <script> import axios from "axios"; import taskSubmitter from "../../genericComponents/taskSubmitter"; Loading @@ -41,14 +43,14 @@ export default { data: function() { return { stageType: "MissingStage", } stageType: "MissingStage" }; }, computed: { stageTypeUri: function() { return `${this.$store.getters.baseUri}/api/v2/properties/stage/type`; }, return `${this.$store.getters.baseUri}/api/v2/instrument/stage/type`; } }, mounted() { Loading @@ -57,7 +59,7 @@ export default { methods: { getStageType: function() { console.log("Getting stage type") console.log("Getting stage type"); axios .get(this.stageTypeUri) .then(response => { Loading @@ -69,7 +71,7 @@ export default { }); }, setStageType: function() { console.log("Setting stage type") console.log("Setting stage type"); axios .put(this.stageTypeUri, this.stageType) .then(response => { Loading @@ -82,7 +84,7 @@ export default { }); } } } }; </script> <style lang="less"></style> Loading
openflexure_microscope/api/static/src/components/viewComponents/settingsComponents/stageSettings.vue +73 −71 Original line number Diff line number Diff line Loading @@ -14,7 +14,10 @@ </select> </div> <div> <button type="submit" class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1"> <button type="submit" class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1" > Change stage type </button> </div> Loading @@ -28,7 +31,6 @@ </template> <script> import axios from "axios"; import taskSubmitter from "../../genericComponents/taskSubmitter"; Loading @@ -41,14 +43,14 @@ export default { data: function() { return { stageType: "MissingStage", } stageType: "MissingStage" }; }, computed: { stageTypeUri: function() { return `${this.$store.getters.baseUri}/api/v2/properties/stage/type`; }, return `${this.$store.getters.baseUri}/api/v2/instrument/stage/type`; } }, mounted() { Loading @@ -57,7 +59,7 @@ export default { methods: { getStageType: function() { console.log("Getting stage type") console.log("Getting stage type"); axios .get(this.stageTypeUri) .then(response => { Loading @@ -69,7 +71,7 @@ export default { }); }, setStageType: function() { console.log("Setting stage type") console.log("Setting stage type"); axios .put(this.stageTypeUri, this.stageType) .then(response => { Loading @@ -82,7 +84,7 @@ export default { }); } } } }; </script> <style lang="less"></style>