show note name if tags dont exist for a task
This commit is contained in:
@@ -321,6 +321,12 @@ class OrgTodoListView extends ItemView {
|
||||
for (const tag of t.tags) {
|
||||
row.createSpan({ text: "#" + tag, cls: "org-todo-rowtag" });
|
||||
}
|
||||
|
||||
if (t.tags.length === 0) {
|
||||
const note = row.createSpan({ text: t.file.basename, cls: "org-todo-note" });
|
||||
note.addEventListener("click", () => this.openTask(t));
|
||||
}
|
||||
|
||||
if (t.dueDate) row.createSpan({ text: "📅 " + t.dueDate, cls: "org-todo-date" });
|
||||
|
||||
label.addEventListener("click", () => this.openTask(t));
|
||||
|
||||
Reference in New Issue
Block a user