Fixed duplicated polling timers

This commit is contained in:
Joel Collins 2020-11-06 10:32:47 +00:00
parent ac382b7fab
commit fcd9fa4990

View file

@ -94,7 +94,6 @@ export default {
return { return {
taskId: null, taskId: null,
taskUrl: null, taskUrl: null,
polling: null,
progress: null, progress: null,
taskStarted: false, taskStarted: false,
taskRunning: false taskRunning: false
@ -182,6 +181,7 @@ export default {
}, },
startPolling: function(taskId, taskUrl) { startPolling: function(taskId, taskUrl) {
if (this.taskRunning != true) {
// Starts polling an existing Action task // Starts polling an existing Action task
this.taskId = taskId; this.taskId = taskId;
this.taskUrl = taskUrl; this.taskUrl = taskUrl;
@ -214,6 +214,7 @@ export default {
this.getFormData(); this.getFormData();
} }
}); });
}
}, },
pollTask: function(taskId, interval) { pollTask: function(taskId, interval) {