From b91a45d94a27021abdcaf8145d520df6da5758b5 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 20 Oct 2023 13:50:58 -0700 Subject: [PATCH] =?utf8?q?Rename:=20currentTagView=20=E2=86=92=20currentTa?= =?utf8?q?gFilter?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- vopamoi.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vopamoi.ts b/vopamoi.ts index 47c421d..c72884e 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -320,7 +320,7 @@ function BrowserUI() { todo: "White", waiting: "MediumOrchid", }; - var currentTagView: string | null = null; + var currentTagFilter: string | null = null; var currentViewState = "todo"; var taskFocusedBeforeJumpingToInput: HTMLElement | null = null; var lastTagNameEntered = ""; @@ -561,7 +561,7 @@ function BrowserUI() { }, resetTagView: function () { - currentTagView = null; + currentTagFilter = null; this.setTitle(); const taskList = document.getElementById("tasks")!; for (const task of Array.from(document.getElementsByClassName("task"))) { @@ -618,7 +618,7 @@ function BrowserUI() { tag = target.textContent!; } - if (currentTagView !== null) { + if (currentTagFilter !== null) { this.resetTagView(); } @@ -655,12 +655,12 @@ function BrowserUI() { } } - currentTagView = tag; + currentTagFilter = tag; this.setTitle(); }, setTitle: function () { - document.title = "Vopamoi: " + currentViewState + (currentTagView ? ": " + currentTagView : ""); + document.title = "Vopamoi: " + currentViewState + (currentTagFilter ? ": " + currentTagFilter : ""); }, setView: function (state: string) { @@ -681,7 +681,7 @@ function BrowserUI() { }, setUntaggedView: function () { - if (currentTagView !== null) { + if (currentTagFilter !== null) { this.resetTagView(); } for (const task of document.getElementsByClassName("task")) { -- 2.44.1