-
-
-
+
+
+
-
-
+
+
{{ workflowDisplayName }}
@@ -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: {
@@ -240,25 +233,18 @@ export default {
}
},
async setWorkflow(name) {
- try {
- this.workflowName = name;
+ 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();
- } catch (err) {
- this.modalError(err);
+ // refresh UI
+ await this.readSettings();
+ } catch (err) {
+ this.modalError(err);
- // revert if server rejected
- this.workflowName = await this.readThingProperty(
- "smart_scan",
- "workflow_name"
- );
+ // revert if server rejected
+ this.workflowName = await this.readThingProperty("smart_scan", "workflow_name");
}
},
async downloadZipFile(response) {