mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
normalize context menu using @popperjs
+ 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
This commit is contained in:
committed by
Mungai Njoroge
parent
4e0837a627
commit
bbe7984e4e
@@ -0,0 +1,27 @@
|
||||
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];
|
||||
Reference in New Issue
Block a user