From ca7fb85224d9a7a6c24b898e846f921e21a400b2 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Tue, 26 Dec 2023 22:14:32 -0300 Subject: [PATCH] config-joystick-view: Fix showing if stick axis is horizontal or vertical --- src/views/ConfigurationJoystickView.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/ConfigurationJoystickView.vue b/src/views/ConfigurationJoystickView.vue index 36ade00d8..bf6a3687f 100644 --- a/src/views/ConfigurationJoystickView.vue +++ b/src/views/ConfigurationJoystickView.vue @@ -231,7 +231,11 @@
- {{ [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' + }}