Skip to content

Commit 49071cb

Browse files
authored
Merge pull request #38 from LaswitchTech/dev
General: Version bumped to v0.0.39
2 parents c5fc4f3 + a69a3c6 commit 49071cb

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.38
1+
v0.0.39

info.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "LaswitchTech",
66
"email": "support@laswitchtech.com",
77
"date": "2025-10-16",
8-
"version": "v0.0.38",
8+
"version": "v0.0.39",
99
"tags": "tasks, management, workflowhub",
1010
"description": "Tasks Plugin for the LaswitchTech Core Framework.",
1111
"repository": "https://github.com/LaswitchTech/core-plugin-tasks",

library.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,26 @@ builder.add('renderers', 'task.progress', function(value, data, type){
194194
return '<div>' + value + '</div>';
195195
})
196196
builder.add('renderers', 'task.process', function(value, data, type){
197+
var current = {};
198+
var last = {};
197199
if(typeof data.task !== 'undefined' || typeof data.process !== 'undefined'){
198200
for(const [progress, step] of Object.entries(value)){
199201
for(const [order, task] of Object.entries(step.tasks)){
202+
last.step = step;
203+
last.task = task;
200204
if(!task.isCompleted){
201-
return '<div><h5><span class="badge text-bg-'+step.color+'"><i class="me-1 bi bi-'+step.icon+'"></i>'+task.name+'</span></h5></div>';
205+
current.step = step;
206+
current.task = task;
202207
}
203208
}
204209
}
205210
}
211+
if(typeof current.step !== 'undefined' && typeof current.task !== 'undefined'){
212+
return '<div><h5><span class="badge text-bg-'+current.step.color+'"><i class="me-1 bi bi-'+current.step.icon+'"></i>'+current.task.name+'</span></h5></div>';
213+
}
214+
if(typeof last.step !== 'undefined' && typeof last.task !== 'undefined'){
215+
return '<div><h5><span class="badge text-bg-'+last.step.color+'"><i class="me-1 bi bi-'+last.step.icon+'"></i>'+last.task.name+'</span></h5></div>';
216+
}
206217
return '<div>' + value + '</div>';
207218
})
208219
builder.add('renderers', 'task.priority', function(value, data, type){

0 commit comments

Comments
 (0)