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>
|
||||
|
||||
<button
|
||||
class="uk-button uk-button-default uk-margin uk-width-1-1"
|
||||
@click="zeroRequest()"
|
||||
>
|
||||
Zero coordinates
|
||||
</button>
|
||||
<taskSubmitter
|
||||
:submit-url="zeroActionUri"
|
||||
:submit-label="'Zero Coordinates'"
|
||||
:canTerminate="false"
|
||||
@finished="updatePosition"
|
||||
@error="modalError"
|
||||
></taskSubmitter>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
|
@ -213,7 +214,7 @@ export default {
|
|||
return this.thingActionUrl("stage", "move_absolute");
|
||||
},
|
||||
zeroActionUri: function() {
|
||||
return this.thingActionUrl("stage", "zero");
|
||||
return this.thingActionUrl("stage", "set_zero_position");
|
||||
},
|
||||
positionStatusUri: function() {
|
||||
return `${this.baseUri}/stage/position`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue