Move Weekly Tasks to the top of the Tasks sidebar list
This commit is contained in:
1 parent
6b75b8bbe2
commit
90a26fdefc
1 file changed
+4
-3
+4
-3
@@ -6371,9 +6371,6 @@
|
||||
|
||||
var list = document.getElementById("tasks-list");
|
||||
list.innerHTML = "";
|
||||
TASKS_DATA.forEach(function (entry) {
|
||||
list.appendChild(buildTaskSidebarCard(entry, entry.id === tasksSelectedId));
|
||||
});
|
||||
|
||||
list.appendChild(buildWeeklyToggleCard());
|
||||
if (weeklyExpanded) {
|
||||
@@ -6385,6 +6382,10 @@
|
||||
});
|
||||
}
|
||||
|
||||
TASKS_DATA.forEach(function (entry) {
|
||||
list.appendChild(buildTaskSidebarCard(entry, entry.id === tasksSelectedId));
|
||||
});
|
||||
|
||||
var detail = document.getElementById("tasks-detail");
|
||||
var selected = allSelectable.filter(function (t) { return t.id === tasksSelectedId; })[0];
|
||||
detail.innerHTML = selected ? buildTaskDetail(selected) : "<div class=\"ab-outreach-empty\">No tasks yet.</div>";
|
||||
|
||||
Reference in new issue
Block a user