diff --git a/webapp/src/components/tabContentComponents/slideScanComponents/slideScanControls.vue b/webapp/src/components/tabContentComponents/slideScanComponents/slideScanControls.vue index a88700b6..8118bdfb 100644 --- a/webapp/src/components/tabContentComponents/slideScanComponents/slideScanControls.vue +++ b/webapp/src/components/tabContentComponents/slideScanComponents/slideScanControls.vue @@ -42,8 +42,8 @@ import propertyControl from "@/components/labThingsComponents/propertyControl.vue"; import ServerSpecifiedInterface from "@/components/labThingsComponents/serverSpecifiedInterface.vue"; import { useIntersectionObserver } from "@vueuse/core"; -import { mapWritableState } from "pinia"; -import { useSettingsStore } from "@/stores/settings.js"; +//import { mapWritableState } from "pinia"; +//import { useSettingsStore } from "@/stores/settings.js"; export default { name: "SlideScanControls", @@ -58,6 +58,7 @@ export default { workflowName: undefined, workflowSettings: [], workflowOptions: [], + workflowReady: false, }; }, @@ -84,7 +85,6 @@ export default { }, methods: { - ...mapWritableState(useSettingsStore, ["ready"]), visibilityChanged(isVisible) { if (isVisible) { this.readSettings(); @@ -99,7 +99,7 @@ export default { } if (this.workflowName) { - this.ready = await this.readThingProperty(this.workflowName, "ready", true); + this.workflowReady = await this.readThingProperty(this.workflowName, "ready", true); this.workflowSettings = (await this.getThingEndpoint(this.workflowName, "settings_ui")) || []; } diff --git a/webapp/src/mixins/labThingsMixins.js b/webapp/src/mixins/labThingsMixins.js index 510c0a78..48189fe1 100644 --- a/webapp/src/mixins/labThingsMixins.js +++ b/webapp/src/mixins/labThingsMixins.js @@ -39,10 +39,10 @@ export default { return this.wotStore.thingActionUrl(thing, action, "invokeaction", allowUndefined); }, thingActionAvailable(thing, action) { - return this.wotStore.affordanceAvailable(thing, "actions", action); + return this.wotStore.thingAffordanceAvailable(thing, "actions", action); }, thingPropertyAvailable(thing, property) { - return this.wotStore.affordanceAvailable(thing, "properties", property); + return this.wotStore.thingAffordanceAvailable(thing, "properties", property); }, async readThingProperty(thing, property, silenceErrors = false) { let url = this.wotStore.thingPropertyUrl(thing, property, "readproperty", false);