From: Scott Worley Date: Fri, 20 Oct 2023 21:42:56 +0000 (-0700) Subject: Replace setUntaggedView() with a TagFilter X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/f9aba985b1f9e1a7b76e2f2e605ee34bd23f153d?ds=inline;hp=e0c49063e71dd24fce0f57a5e9ad1287b8073341 Replace setUntaggedView() with a TagFilter This fixes the untagged view's title --- diff --git a/vopamoi.ts b/vopamoi.ts index 926a1f0..f37ce2e 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -689,16 +689,7 @@ function BrowserUI() { }, setUntaggedView: function () { - if (currentTagFilter !== null) { - this.resetTagView(); - } - for (const task of document.getElementsByClassName("task")) { - if (task.getElementsByClassName("tag").length === 0) { - task.classList.remove("hide"); - } else { - task.classList.add("hide"); - } - } + this.setTagFilter({description: "(untagged)", include: task => task.getElementsByClassName("tag").length === 0}); }, undo: function () {