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