},
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 () {