todo: "White",
waiting: "MediumOrchid",
};
+ var currentTagView: string | null = null;
var currentViewState = "todo";
var taskFocusedBeforeJumpingToInput: HTMLElement | null = null;
var lastTagNameEntered = "";
this.firstVisibleTask()?.focus();
}
input.value = "";
+ if (currentTagView) {
+ ui.addTag(task.getAttribute("data-created")!, currentTagView);
+ }
if (event.getModifierState("Control")) {
this.makeBottomPriority(task);
}
},
resetTagView: function () {
+ currentTagView = null;
for (const task of document.getElementsByClassName("task")) {
task.classList.remove("hide");
}
task.classList.add("hide");
}
}
+ currentTagView = tag;
},
setView: function (state: string) {