separate search tab requests

This commit is contained in:
geoffrey45
2022-05-24 15:56:51 +03:00
parent b497344521
commit 770688838c
2 changed files with 42 additions and 5 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { defineStore } from "pinia";
import perks from "../composables/perks";
import { focusCurrent } from "../composables/perks";
const tablist = {
home: "home",
@@ -16,7 +16,7 @@ export default defineStore("tabs", {
changeTab(tab: string) {
if (tab === this.tabs.queue) {
setTimeout(() => {
perks.focusCurrent();
focusCurrent();
}, 500);
}
this.current = tab;