Removed vestigial code from CSMSettings

This commit is contained in:
Richard Bowman 2023-11-30 09:14:04 +00:00
parent b47ac8b828
commit 6c48444126

View file

@ -43,7 +43,7 @@ export default {
data: function() { data: function() {
return { return {
settings: null, thingDescription: undefined,
recalibrationLinks: {}, recalibrationLinks: {},
isCalibrating: false, isCalibrating: false,
dataAvailable: false dataAvailable: false
@ -51,34 +51,13 @@ export default {
}, },
computed: { computed: {
settingsUri: function() {
return `${this.$store.getters.baseUri}/api/v2/instrument/settings`;
},
pluginsUri: function() {
return `${this.$store.getters.baseUri}/api/v2/extensions`;
}
}, },
mounted() { mounted() {
this.updateSettings(); this.updateThingDescription();
this.updateRecalibrationLinks();
}, },
methods: { methods: {
updateSettings: function() {
// Update links
axios
.get(this.settingsUri)
.then(response => {
this.settings =
response.data.extensions["org.openflexure.camera_stage_mapping"];
})
.catch(error => {
this.modalError(error); // Let mixin handle error
this.settings = {};
});
},
updateCalibrationDataAvailability: function() { updateCalibrationDataAvailability: function() {
if ("get_calibration" in this.recalibrationLinks) { if ("get_calibration" in this.recalibrationLinks) {
axios axios
@ -115,7 +94,8 @@ export default {
}); });
}, },
updateRecalibrationLinks: function() { updateThingDescription: function() {
this.thingDescription =
axios axios
.get(this.pluginsUri) // Get a list of plugins .get(this.pluginsUri) // Get a list of plugins
.then(response => { .then(response => {