mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
824dcaecdf
+ fix right now playing component gap + show emoji if there's no search result + abstract now playing component settings into one setting + break context menu's context item into a component
17 lines
315 B
TypeScript
17 lines
315 B
TypeScript
import { defineStore } from "pinia";
|
|
import useQueueStore from "../queue";
|
|
|
|
export default defineStore("settings", {
|
|
state: () => ({
|
|
use_alt_np: false,
|
|
}),
|
|
actions: {
|
|
toggleUseRightNP() {
|
|
this.use_alt_np = !this.use_alt_np;
|
|
useQueueStore();
|
|
},
|
|
},
|
|
getters: {},
|
|
persist: true,
|
|
});
|