Prettier on slideScanContent
This commit is contained in:
parent
1a0dd71f30
commit
fb7a8b4959
1 changed files with 23 additions and 37 deletions
|
|
@ -11,11 +11,7 @@
|
|||
:value="workflowName"
|
||||
@change="setWorkflow($event.target.value)"
|
||||
>
|
||||
<option
|
||||
v-for="(label, name) in workflowOptions"
|
||||
:key="name"
|
||||
:value="name"
|
||||
>
|
||||
<option v-for="(label, name) in workflowOptions" :key="name" :value="name">
|
||||
{{ label }}
|
||||
</option>
|
||||
</select>
|
||||
|
|
@ -178,10 +174,7 @@ export default {
|
|||
|
||||
async created() {
|
||||
this.readSettings();
|
||||
this.workflowOptions = await this.readThingProperty(
|
||||
"smart_scan",
|
||||
"workflow_display_names",
|
||||
);
|
||||
this.workflowOptions = await this.readThingProperty("smart_scan", "workflow_display_names");
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -243,11 +236,7 @@ export default {
|
|||
try {
|
||||
this.workflowName = name;
|
||||
|
||||
await this.writeThingProperty(
|
||||
"smart_scan",
|
||||
"workflow_name",
|
||||
name
|
||||
);
|
||||
await this.writeThingProperty("smart_scan", "workflow_name", name);
|
||||
|
||||
// refresh UI
|
||||
await this.readSettings();
|
||||
|
|
@ -255,10 +244,7 @@ export default {
|
|||
this.modalError(err);
|
||||
|
||||
// revert if server rejected
|
||||
this.workflowName = await this.readThingProperty(
|
||||
"smart_scan",
|
||||
"workflow_name"
|
||||
);
|
||||
this.workflowName = await this.readThingProperty("smart_scan", "workflow_name");
|
||||
}
|
||||
},
|
||||
async downloadZipFile(response) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue