Nested folders: use an info banner instead of a warning in the move modal (#68997)

use an info banner instead of a warning
This commit is contained in:
Ashley Harrison
2023-05-24 16:24:45 +01:00
committed by GitHub
parent 9439649a4c
commit f91c1b9897
2 changed files with 4 additions and 2 deletions

View File

@@ -79,7 +79,9 @@ describe('browse-dashboards MoveModal', () => {
};
render(<MoveModal {...props} />);
expect(await screen.findByText('Moving this item may change its permissions.')).toBeInTheDocument();
expect(
await screen.findByRole('status', { name: 'Moving this item may change its permissions.' })
).toBeInTheDocument();
});
it('only enables the `Move` button if a folder is selected', async () => {

View File

@@ -29,7 +29,7 @@ export const MoveModal = ({ onConfirm, onDismiss, selectedItems, ...props }: Pro
return (
<Modal title="Move" onDismiss={onDismiss} {...props}>
{selectedFolders.length > 0 && <Alert severity="warning" title="Moving this item may change its permissions." />}
{selectedFolders.length > 0 && <Alert severity="info" title="Moving this item may change its permissions." />}
<P>This action will move the following content:</P>