diff --git a/js/app.js b/js/app.js index 9bfd993..253c8b4 100644 --- a/js/app.js +++ b/js/app.js @@ -513,6 +513,16 @@ function renderTasks() { `; + let priorityClass = 'pill-blue'; + let priorityLabel = '🔵 Low'; + if (t.priority === 'high') { + priorityClass = 'pill-red'; + priorityLabel = '🔴 High'; + } else if (t.priority === 'medium') { + priorityClass = 'pill-amber'; + priorityLabel = '🟡 Medium'; + } + html += `
@@ -521,6 +531,7 @@ function renderTasks() {
${isDone ? 'Done' : 'Due ' + formatDate(t.due_at)} ${sub.short_code} + ${priorityLabel}