mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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 () => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user