Fixed duplicated polling timers
This commit is contained in:
parent
ac382b7fab
commit
fcd9fa4990
1 changed files with 34 additions and 33 deletions
|
|
@ -94,7 +94,6 @@ export default {
|
|||
return {
|
||||
taskId: null,
|
||||
taskUrl: null,
|
||||
polling: null,
|
||||
progress: null,
|
||||
taskStarted: false,
|
||||
taskRunning: false
|
||||
|
|
@ -182,6 +181,7 @@ export default {
|
|||
},
|
||||
|
||||
startPolling: function(taskId, taskUrl) {
|
||||
if (this.taskRunning != true) {
|
||||
// Starts polling an existing Action task
|
||||
this.taskId = taskId;
|
||||
this.taskUrl = taskUrl;
|
||||
|
|
@ -214,6 +214,7 @@ export default {
|
|||
this.getFormData();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
pollTask: function(taskId, interval) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue