From 1b0b6acf1d9e12aaf422ce88e0f231558b321e26 Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Thu, 18 Jan 2024 15:46:36 +0100 Subject: [PATCH] SONAR-21232 Show spinner while loading projects/apps --- .../src/main/js/apps/projects/components/ProjectsList.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx index 43fea64f1e3..c2e647a2e33 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx @@ -17,6 +17,8 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +import { Spinner } from 'design-system'; import * as React from 'react'; import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer'; import { List, ListRowProps } from 'react-virtualized/dist/commonjs/List'; @@ -93,7 +95,9 @@ export default class ProjectsList extends React.PureComponent { }; renderList() { - return ( + return this.props.loading ? ( + + ) : ( {({ height, width }) => (