ui_migration fix(deps): VUE3 migration goal_1, Resolved core dependencies for the UI migration. Remaining warnings are non-critical and do not affect runtime stability.
This commit is contained in:
parent
5a62b92f45
commit
610f963c4e
3 changed files with 11 additions and 11 deletions
|
|
@ -210,6 +210,7 @@ export default {
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
modelValue: {
|
modelValue: {
|
||||||
|
deep: true,
|
||||||
handler() {
|
handler() {
|
||||||
// Fire updateIsEdited on both modelValue and internal modelValue change,
|
// Fire updateIsEdited on both modelValue and internal modelValue change,
|
||||||
// as change in modelValue may not causse internalValue to change.
|
// as change in modelValue may not causse internalValue to change.
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async created() {
|
||||||
|
await this.readSettings();
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
async safeReadSettings() {
|
async safeReadSettings() {
|
||||||
if (!this.$store.state.connected) return;
|
if (!this.$store.state.connected) return;
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
<select
|
<select
|
||||||
class="uk-select uk-form-small"
|
class="uk-select uk-form-small"
|
||||||
:modelValue="workflowName"
|
:value="workflowName"
|
||||||
@change="setWorkflow($event.target.modelValue)"
|
@change="setWorkflow($event.target.value)"
|
||||||
>
|
>
|
||||||
<option v-for="(label, name) in workflowOptions" :key="name" :modelValue="name">
|
<option v-for="(label, name) in workflowOptions" :key="name" :value="name">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -186,7 +186,7 @@ export default {
|
||||||
this.visibilityChanged(isIntersecting);
|
this.visibilityChanged(isIntersecting);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
threshold: 0.0, // Adjust as needed
|
threshold: 0.0,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
@ -198,9 +198,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async readSettings() {
|
async readSettings() {
|
||||||
this.workflowOptions = await this.readThingProperty("smart_scan", "workflow_display_names", true) || {};
|
//this.workflowOptions = await this.readThingProperty("smart_scan", "workflow_display_names", true) || {};
|
||||||
|
|
||||||
this.workflowName = await this.readThingProperty("smart_scan", "workflow_name", false);
|
this.workflowName = await this.readThingProperty("smart_scan", "workflow_name");
|
||||||
|
|
||||||
if (!this.workflowName) {
|
if (!this.workflowName) {
|
||||||
console.warn("Could not read workflow_name, using default");
|
console.warn("Could not read workflow_name, using default");
|
||||||
|
|
@ -266,11 +266,6 @@ export default {
|
||||||
try {
|
try {
|
||||||
this.workflowName = name;
|
this.workflowName = name;
|
||||||
|
|
||||||
if (!this.workflowName) {
|
|
||||||
console.warn("Could not read workflow_name, using default");
|
|
||||||
this.workflowName = "histo_scan_workflow";
|
|
||||||
}
|
|
||||||
|
|
||||||
await this.writeThingProperty("smart_scan", "workflow_name", name);
|
await this.writeThingProperty("smart_scan", "workflow_name", name);
|
||||||
|
|
||||||
// refresh UI
|
// refresh UI
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue