From f91c1b9897148011a4dcb1a536020e11c3529052 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 24 May 2023 16:24:45 +0100 Subject: [PATCH] Nested folders: use an info banner instead of a warning in the move modal (#68997) use an info banner instead of a warning --- .../components/BrowseActions/MoveModal.test.tsx | 4 +++- .../browse-dashboards/components/BrowseActions/MoveModal.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.test.tsx b/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.test.tsx index b5e34cdb623..c860dd6d2fd 100644 --- a/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.test.tsx +++ b/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.test.tsx @@ -79,7 +79,9 @@ describe('browse-dashboards MoveModal', () => { }; render(); - 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 () => { diff --git a/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.tsx b/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.tsx index c235b7608a8..679cf7f1153 100644 --- a/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.tsx +++ b/public/app/features/browse-dashboards/components/BrowseActions/MoveModal.tsx @@ -29,7 +29,7 @@ export const MoveModal = ({ onConfirm, onDismiss, selectedItems, ...props }: Pro return ( - {selectedFolders.length > 0 && } + {selectedFolders.length > 0 && }

This action will move the following content: