Show scan folder instead of name

This commit is contained in:
Joe Knapper 2024-02-21 15:47:42 +00:00
parent 6031280a19
commit 97c114b77e

View file

@ -112,7 +112,7 @@
</button> </button>
</div> </div>
<h3 v-if="scanning"> <h3 v-if="scanning">
Scan ID: {{ scan_name }} Scan ID: {{ lastScanName }}
</h3> </h3>
</div> </div>
<div class="view-image uk-width-expand uk-height-1-1"> <div class="view-image uk-width-expand uk-height-1-1">
@ -190,6 +190,7 @@ export default {
if (mtime !== null) { if (mtime !== null) {
this.lastStitchedImage = `${this.$store.getters.baseUri}/smart_scan/latest_preview_stitch.jpg?t=${mtime}`; this.lastStitchedImage = `${this.$store.getters.baseUri}/smart_scan/latest_preview_stitch.jpg?t=${mtime}`;
} }
this.lastScanName = await this.readThingProperty("smart_scan", "latest_scan_name");
setTimeout(this.pollScan, 1000); // keep rescheduling until it's stopped setTimeout(this.pollScan, 1000); // keep rescheduling until it's stopped
} }
} }