mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
bbe7984e4e
+ normalize context children too + add setting to toggle context children via click or hover + add a select setting component + remove dead teleport code from sidebar tabs wrapper + general clean up
27 lines
766 B
TypeScript
27 lines
766 B
TypeScript
import { Setting } from "@/interfaces/settings";
|
|
import { SettingType } from "@/settings/enums";
|
|
import { contextChildrenShowModeStrings as showModeStr } from "./../strings";
|
|
|
|
import useSettingsStore from "@/stores/settings";
|
|
import { contextChildrenShowMode as mode } from "@/composables/enums";
|
|
|
|
const settings = useSettingsStore;
|
|
|
|
const context_children_show_mode: Setting = {
|
|
title: showModeStr.settings.show_mode,
|
|
type: SettingType.select,
|
|
options: [
|
|
{
|
|
title: mode.click,
|
|
value: mode.click,
|
|
},
|
|
{
|
|
title: mode.hover,
|
|
value: mode.hover,
|
|
},
|
|
],
|
|
source: () => settings().contextChildrenShowMode,
|
|
action: (value: mode) => settings().setContextChildrenShowMode(value),
|
|
};
|
|
|
|
export default [context_children_show_mode]; |