1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

feat: update message with no feature toggles (#5663)

This commit is contained in:
Mateusz Kwasniewski 2023-12-18 09:05:58 +01:00 committed by GitHub
parent ab2281d7e7
commit cc01971ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -138,7 +138,7 @@ test('Filter table by project', async () => {
await filterFeaturesByProject('Project B'); await filterFeaturesByProject('Project B');
await screen.findByText( await screen.findByText(
'No feature toggles available. Get started by adding a new feature toggle.', 'No feature toggles found matching your criteria. Get started by adding a new feature toggle.',
); );
expect(window.location.href).toContain( expect(window.location.href).toContain(
'?sort=createdAt&order=desc&offset=0&columns=&project=IS%3Aproject-b', '?sort=createdAt&order=desc&offset=0&columns=&project=IS%3Aproject-b',

View File

@ -361,8 +361,9 @@ const FeatureToggleListTableComponent: VFC = () => {
} }
elseShow={ elseShow={
<TablePlaceholder> <TablePlaceholder>
No feature toggles available. Get started by No feature toggles found matching your
adding a new feature toggle. criteria. Get started by adding a new
feature toggle.
</TablePlaceholder> </TablePlaceholder>
} }
/> />

View File

@ -641,8 +641,9 @@ export const ProjectFeatureToggles = ({
elseShow={ elseShow={
<Box sx={{ padding: theme.spacing(3) }}> <Box sx={{ padding: theme.spacing(3) }}>
<TablePlaceholder> <TablePlaceholder>
No feature toggles available. Get No feature toggles found matching your
started by adding a new feature toggle. criteria. Get started by adding a new
feature toggle.
</TablePlaceholder> </TablePlaceholder>
</Box> </Box>
} }