Update zero coordinates button
This now uses a taskSubmitter and the new URL
This commit is contained in:
parent
93757c2103
commit
c8906008ed
1 changed files with 8 additions and 7 deletions
|
|
@ -68,12 +68,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<taskSubmitter
|
||||||
class="uk-button uk-button-default uk-margin uk-width-1-1"
|
:submit-url="zeroActionUri"
|
||||||
@click="zeroRequest()"
|
:submit-label="'Zero Coordinates'"
|
||||||
>
|
:canTerminate="false"
|
||||||
Zero coordinates
|
@finished="updatePosition"
|
||||||
</button>
|
@error="modalError"
|
||||||
|
></taskSubmitter>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
@ -213,7 +214,7 @@ export default {
|
||||||
return this.thingActionUrl("stage", "move_absolute");
|
return this.thingActionUrl("stage", "move_absolute");
|
||||||
},
|
},
|
||||||
zeroActionUri: function() {
|
zeroActionUri: function() {
|
||||||
return this.thingActionUrl("stage", "zero");
|
return this.thingActionUrl("stage", "set_zero_position");
|
||||||
},
|
},
|
||||||
positionStatusUri: function() {
|
positionStatusUri: function() {
|
||||||
return `${this.baseUri}/stage/position`;
|
return `${this.baseUri}/stage/position`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue