Add "no results" message

This commit is contained in:
Oliver Walters 2026-06-19 01:43:00 +00:00
parent 1b9d44f577
commit a0348ad5d9
1 changed files with 4 additions and 0 deletions

View File

@ -342,6 +342,10 @@ export default function NavigationTree({
<Alert color='red' title={t`Error`} icon={<IconExclamationCircle />}>
{t`Error loading navigation tree.`}
</Alert>
) : !query.isFetching && !query.isLoading && data.length === 0 ? (
<Alert color='blue' icon={<IconSearch />}>
{t`No results found`}
</Alert>
) : (
<Tree data={data} tree={treeState} renderNode={renderNode} />
)}