From c23e71982943f830ed9402eaa9b982b6edbaa0b9 Mon Sep 17 00:00:00 2001 From: cnouguier Date: Thu, 22 Aug 2024 07:47:58 +0200 Subject: [PATCH] wip: Refactor catalog based panel #919 --- .eslintignore | 3 +- .../components/catalog/KCategoryItem.vue | 2 +- .../components/catalog/KLayersPanel.vue | 180 +++++++++--------- 3 files changed, 93 insertions(+), 92 deletions(-) diff --git a/.eslintignore b/.eslintignore index 640b83b51..aa53289cf 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ -core/client/components/action/KAction.vue \ No newline at end of file +core/client/components/action/KAction.vue +map/client/components/catalog/KLayersPanel.vue \ No newline at end of file diff --git a/map/client/components/catalog/KCategoryItem.vue b/map/client/components/catalog/KCategoryItem.vue index 41f7bfbda..7b5daede4 100644 --- a/map/client/components/catalog/KCategoryItem.vue +++ b/map/client/components/catalog/KCategoryItem.vue @@ -42,7 +42,7 @@ const localStorageKey = 'catalog-categories' // Computed const name = computed(() => { - return i18n.t(props.category.name) + return i18n.tie(props.category.name) }) const headerClass = computed(() => { const defaultClass = 'text-' + _.get(props.category, 'icon.color', 'primary') diff --git a/map/client/components/catalog/KLayersPanel.vue b/map/client/components/catalog/KLayersPanel.vue index e10235448..cdb2f4bcb 100644 --- a/map/client/components/catalog/KLayersPanel.vue +++ b/map/client/components/catalog/KLayersPanel.vue @@ -3,7 +3,7 @@ -
+
+ +