From 13dbe393a28b9975fd30df00e77c6362f42ebc24 Mon Sep 17 00:00:00 2001 From: Thomas Lathuiliere <40292402+balzdur@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:18:43 +0200 Subject: [PATCH] feat(lists): handle empty search list (#468) --- packages/app-builder/public/locales/en/lists.json | 1 + packages/app-builder/src/routes/_builder+/lists+/$listId.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/app-builder/public/locales/en/lists.json b/packages/app-builder/public/locales/en/lists.json index f605bbbf0..091739858 100644 --- a/packages/app-builder/public/locales/en/lists.json +++ b/packages/app-builder/public/locales/en/lists.json @@ -9,6 +9,7 @@ "show_less": "show less", "empty_custom_lists_list": "You do not have any list. Add your first one to see it here.", "empty_custom_list_values_list": "This list is empty. Add its first value to see it here.", + "empty_custom_list_matches": "No value matches your search.", "create_list.title": "New List", "create_list.name_placeholder": "Add a name to your list", "create_list.description_placeholder": "Add a description", diff --git a/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx b/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx index e03c4921f..8b5a4f40b 100644 --- a/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx +++ b/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx @@ -141,7 +141,9 @@ export default function Lists() { {virtualTable.isEmpty ? (

- {t('lists:empty_custom_list_values_list')} + {listValues.length > 0 + ? t('lists:empty_custom_list_matches') + : t('lists:empty_custom_list_values_list')}

) : (