Skip to content

Commit

Permalink
config-joystick-view: Fix showing if stick axis is horizontal or vert…
Browse files Browse the repository at this point in the history
…ical
  • Loading branch information
rafaellehmkuhl committed Jan 16, 2024
1 parent b62c386 commit eef53a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/ConfigurationJoystickView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@
</template>
<div v-for="input in currentAxisInputs" :key="input.id" class="flex items-center justify-between p-2">
<v-icon class="mr-3">
{{ [JoystickAxis.A0, JoystickAxis.A2].includes(input.id) ? 'mdi-pan-horizontal' : 'mdi-pan-vertical' }}
{{
[JoystickAxis.A0, JoystickAxis.A2].includes(Number(input.id))
? 'mdi-pan-horizontal'
: 'mdi-pan-vertical'
}}
</v-icon>
<v-text-field
v-model.number="controllerStore.protocolMapping.axesCorrespondencies[input.id].min"
Expand Down

0 comments on commit eef53a8

Please sign in to comment.