Add a button to stitch scans
This commit is contained in:
parent
0b45a5dc76
commit
1b39f9d5c0
1 changed files with 12 additions and 0 deletions
|
|
@ -54,6 +54,15 @@
|
||||||
<button class="uk-button" @click="deleteScan(item.name)">
|
<button class="uk-button" @click="deleteScan(item.name)">
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
|
<task-submitter
|
||||||
|
submit-label="Stitch Images"
|
||||||
|
:can-terminate="false"
|
||||||
|
:submit-data="{'scan_name': item.name}"
|
||||||
|
:button-primary="false"
|
||||||
|
:submit-url="stitchUri"
|
||||||
|
:modal-progress="true"
|
||||||
|
@error="modalError"
|
||||||
|
/>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{{ item.number_of_images }} images</li>
|
<li>{{ item.number_of_images }} images</li>
|
||||||
<li>created {{ formatDate(item.created) }}</li>
|
<li>created {{ formatDate(item.created) }}</li>
|
||||||
|
|
@ -99,6 +108,9 @@ export default {
|
||||||
},
|
},
|
||||||
createZipOfScanUri() {
|
createZipOfScanUri() {
|
||||||
return this.thingActionUrl("smart_scan", "create_zip_of_scan");
|
return this.thingActionUrl("smart_scan", "create_zip_of_scan");
|
||||||
|
},
|
||||||
|
stitchUri() {
|
||||||
|
return this.thingActionUrl("smart_scan", "stitch_scan");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue