From 930d9891904b0d84971f3e80af264debf3a63170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiss=20R=C3=B3bert?= Date: Wed, 5 Aug 2026 20:30:42 +0200 Subject: [PATCH] style: allow @angular-eslint/template/alt-text-error rule --- packages/uhk-web/eslint.config.mjs | 1 - .../popover/tab/keymap/keymap-tab.component.html | 3 --- .../popover/tab/keymap/keymap-tab.component.scss | 11 ----------- .../reducers/calculate-layer-options-of-keymap.ts | 5 +++++ 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/packages/uhk-web/eslint.config.mjs b/packages/uhk-web/eslint.config.mjs index 1f504d42db9..c8a011f860f 100644 --- a/packages/uhk-web/eslint.config.mjs +++ b/packages/uhk-web/eslint.config.mjs @@ -37,7 +37,6 @@ export default tsEslint.config( ...angular.configs.templateAccessibility, ], rules: { - '@angular-eslint/template/alt-text': 'off', '@angular-eslint/template/click-events-have-key-events': 'off', '@angular-eslint/template/elements-content': 'off', '@angular-eslint/template/interactive-supports-focus': 'off', diff --git a/packages/uhk-web/src/app/components/popover/tab/keymap/keymap-tab.component.html b/packages/uhk-web/src/app/components/popover/tab/keymap/keymap-tab.component.html index 3ffaa3b9cc1..1b04af0d2b3 100644 --- a/packages/uhk-web/src/app/components/popover/tab/keymap/keymap-tab.component.html +++ b/packages/uhk-web/src/app/components/popover/tab/keymap/keymap-tab.component.html @@ -29,9 +29,6 @@
-
- -
{ const layerOptions = initLayerOptions(); + // it can happen when the user changes the URL to invalid keymap abbreviation + if (!keymap) { + return layerOptions; + } + for (const layer of keymap.layers) { layerOptions.get(layer.id).selected = true; }