Skip to content

Commit

Permalink
joystick-config-view: Only show axis-related component when axis in p…
Browse files Browse the repository at this point in the history
…resent in the input
  • Loading branch information
rafaellehmkuhl committed Dec 8, 2023
1 parent c28f79d commit 5d6fb71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/ConfigurationJoystickView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@
{{ buttonFunctionAssignmentFeedback }}
</p>
</Transition>
<div class="w-[90%] h-[2px] my-5 bg-slate-900/20" />
<p class="flex items-center justify-center w-full text-xl font-bold text-slate-600">Axis mapping</p>
<template v-if="currentAxisInputs.length > 0">
<div class="w-[90%] h-[2px] my-5 bg-slate-900/20" />
<p class="flex items-center justify-center w-full text-xl font-bold text-slate-600">Axis mapping</p>
</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' }}
Expand Down

0 comments on commit 5d6fb71

Please sign in to comment.