Upgraded to API v2
This commit is contained in:
parent
f8ea752237
commit
00cc0dfebc
1 changed files with 3 additions and 3 deletions
|
|
@ -171,7 +171,7 @@ export default {
|
||||||
var checkCondition = (resolve, reject) => {
|
var checkCondition = (resolve, reject) => {
|
||||||
// If the condition is met, we're done!
|
// If the condition is met, we're done!
|
||||||
axios
|
axios
|
||||||
.get(`${this.$store.getters.uri}/task/${taskId}`)
|
.get(`${this.$store.getters.uriV2}/tasks/${taskId}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log(response.data.status);
|
console.log(response.data.status);
|
||||||
var result = response.data.status;
|
var result = response.data.status;
|
||||||
|
|
@ -215,7 +215,7 @@ export default {
|
||||||
console.log("Starting progress polling");
|
console.log("Starting progress polling");
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.get(`${this.$store.getters.uri}/task/${this.taskId}`)
|
.get(`${this.$store.getters.uriV2}/tasks/${this.taskId}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log("PROGRESS RESPONSE: ", response.data.progress);
|
console.log("PROGRESS RESPONSE: ", response.data.progress);
|
||||||
this.progress = response.data.progress;
|
this.progress = response.data.progress;
|
||||||
|
|
@ -224,7 +224,7 @@ export default {
|
||||||
|
|
||||||
terminateTask: function() {
|
terminateTask: function() {
|
||||||
axios
|
axios
|
||||||
.delete(`${this.$store.getters.uri}/task/${this.taskId}`)
|
.delete(`${this.$store.getters.uriV2}/tasks/${this.taskId}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log("TERMINATION RESPONSE: ", response.data);
|
console.log("TERMINATION RESPONSE: ", response.data);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue