todo: "White",
waiting: "MediumOrchid",
};
- var currentTagView: string | null = null;
+ var currentTagFilter: string | null = null;
var currentViewState = "todo";
var taskFocusedBeforeJumpingToInput: HTMLElement | null = null;
var lastTagNameEntered = "";
},
resetTagView: function () {
- currentTagView = null;
+ currentTagFilter = null;
this.setTitle();
const taskList = document.getElementById("tasks")!;
for (const task of Array.from(document.getElementsByClassName("task"))) {
tag = target.textContent!;
}
- if (currentTagView !== null) {
+ if (currentTagFilter !== null) {
this.resetTagView();
}
}
}
- currentTagView = tag;
+ currentTagFilter = tag;
this.setTitle();
},
setTitle: function () {
- document.title = "Vopamoi: " + currentViewState + (currentTagView ? ": " + currentTagView : "");
+ document.title = "Vopamoi: " + currentViewState + (currentTagFilter ? ": " + currentTagFilter : "");
},
setView: function (state: string) {
},
setUntaggedView: function () {
- if (currentTagView !== null) {
+ if (currentTagFilter !== null) {
this.resetTagView();
}
for (const task of document.getElementsByClassName("task")) {