Skip to content

Commit

Permalink
Add message to search for more items
Browse files Browse the repository at this point in the history
  • Loading branch information
dremin committed Dec 20, 2024
1 parent e660176 commit be345e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ const DirectoryTab = (props: OwnProps) => {
);
})
)}
{filteredDirectory.length > getMaxItems() && (
<Alert variant="neutral">
<Template source={templates[StringTemplates.MoreItems]} />
</Alert>
)}
</Flex>
</Flex>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum StringTemplates {
External = 'PSDirectoryExternal',
SearchDirectory = 'PSDirectorySearchDirectory',
NoItemsFound = 'PSDirectoryNoItemsFound',
MoreItems = 'PSDirectoryMoreItems',
NoAgentsAvailable = 'PSDirectoryNoAgentsAvailable',
NoQueuesAvailable = 'PSDirectoryNoQueuesAvailable',
ColdTransfer = 'PSDirectoryColdTransfer',
Expand All @@ -41,6 +42,7 @@ export const stringHook = () => ({
[StringTemplates.External]: 'External',
[StringTemplates.SearchDirectory]: 'Search Directory',
[StringTemplates.NoItemsFound]: 'No items found.',
[StringTemplates.MoreItems]: 'More items are available using the search field above.',
[StringTemplates.NoAgentsAvailable]: 'No agents are currently eligible to receive a transfer.',
[StringTemplates.NoQueuesAvailable]: 'No queues are currently eligible to receive a transfer.',
[StringTemplates.ColdTransfer]: 'Cold Transfer',
Expand Down

0 comments on commit be345e3

Please sign in to comment.