This fixes the untagged view's title
},
setUntaggedView: function () {
},
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});