feat(settings): handle clicking on selected buttons in rendering mode and language
This commit is contained in:
@@ -40,6 +40,7 @@ const { selected, selectorPosition } = useButtonNavigation({
|
||||
initialButton:
|
||||
BUTTON_KEYS[locales.value.findIndex((l) => l.code === locale.value)] ??
|
||||
BUTTON_KEYS[0]!,
|
||||
onButtonClick: () => handleActivateA(),
|
||||
navigation: {
|
||||
english: {
|
||||
right: "german",
|
||||
@@ -207,7 +208,6 @@ defineOptions({
|
||||
:b-label="$t('common.cancel')"
|
||||
:a-label="$t('common.confirm')"
|
||||
@activate-b="handleActivateB"
|
||||
@activate-a="handleActivateA"
|
||||
/>
|
||||
|
||||
<CommonButtonSelector
|
||||
|
||||
@@ -78,6 +78,7 @@ const { selected, selectorPosition } = useButtonNavigation({
|
||||
_2dMode: [11, 91, 233, 74],
|
||||
},
|
||||
initialButton: app.settings.renderingMode === "3d" ? "_3dMode" : "_2dMode",
|
||||
onButtonClick: () => handleActivateA(),
|
||||
navigation: {
|
||||
_3dMode: { down: "_2dMode" },
|
||||
_2dMode: { up: "_3dMode" },
|
||||
@@ -185,7 +186,6 @@ onRender((ctx) => {
|
||||
:b-label="$t('common.cancel')"
|
||||
:a-label="$t('common.confirm')"
|
||||
@activate-b="handleActivateB"
|
||||
@activate-a="handleActivateA"
|
||||
/>
|
||||
|
||||
<CommonButtonSelector
|
||||
|
||||
Reference in New Issue
Block a user