highlight current folder in pathlist in nav

This commit is contained in:
geoffrey45
2022-06-09 09:30:43 +03:00
parent 14364a1257
commit 6aad05084f
8 changed files with 77 additions and 60 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { defineStore } from "pinia";
import { focusCurrent } from "../composables/perks";
import { focusElem } from "../composables/perks";
const tablist = {
home: "home",
@@ -16,7 +16,7 @@ export default defineStore("tabs", {
changeTab(tab: string) {
if (tab === this.tabs.queue) {
setTimeout(() => {
focusCurrent();
focusElem("currentInQueue");
}, 500);
}
this.current = tab;