fixed tag commands active indicator not showing correctly

This commit is contained in:
Miodec 2022-10-15 11:53:32 +02:00
parent 7f9ddbe6dd
commit e6cd73265c

View file

@ -172,6 +172,10 @@ function updateSuggested(): void {
export let show = (): void => {
themeChosen = false;
//take last element of array
const list = CommandlineLists.current;
console.log(list);
if (!$(".page.pageLoading").hasClass("hidden")) return;
Focus.set(false);
$("#commandLine").removeClass("hidden");
@ -715,7 +719,7 @@ $(document).on("click", "#testModesNotice .textButton", (event) => {
if (attr === undefined) return;
const commands = CommandlineLists.getList(attr);
if (commands !== undefined) {
if ($(event.currentTarget).attr("commands") === "commandsTags") {
if ($(event.currentTarget).attr("commands") === "tags") {
updateTagsCommands();
}
CommandlineLists.pushCurrent(commands);