mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
highlight current folder in pathlist in nav
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user