We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad2eec commit a0f69b6Copy full SHA for a0f69b6
services/static-webserver/client/source/class/osparc/store/PollTasks.js
@@ -55,6 +55,14 @@ qx.Class.define("osparc.store.PollTasks", {
55
});
56
},
57
58
+ removeTask: function(task) {
59
+ const tasks = this.getTasks();
60
+ const index = tasks.findIndex(t => t.getTaskId() === task.getTaskId());
61
+ if (index > -1) {
62
+ tasks.splice(index, 1);
63
+ }
64
+ },
65
+
66
__addTask: function(taskData, interval = 1000) {
67
const tasks = this.getTasks();
68
const index = tasks.findIndex(t => t.getTaskId() === taskData["task_id"]);
0 commit comments