Skip to content

Commit 0af36ea

Browse files
config-joystick-view: Fix showing if stick axis is horizontal or vertical
1 parent 6d33cbc commit 0af36ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/ConfigurationJoystickView.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@
229229
</template>
230230
<div v-for="input in currentAxisInputs" :key="input.id" class="flex items-center justify-between p-2">
231231
<v-icon class="mr-3">
232-
{{ [JoystickAxis.A0, JoystickAxis.A2].includes(input.id) ? 'mdi-pan-horizontal' : 'mdi-pan-vertical' }}
232+
{{
233+
[JoystickAxis.A0, JoystickAxis.A2].includes(Number(input.id))
234+
? 'mdi-pan-horizontal'
235+
: 'mdi-pan-vertical'
236+
}}
233237
</v-icon>
234238
<v-text-field
235239
v-model.number="controllerStore.protocolMapping.axesCorrespondencies[input.id].min"

0 commit comments

Comments
 (0)