]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19863 Remove the re-indexing warning banner for non-admins
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Tue, 4 Jul 2023 19:10:21 +0000 (21:10 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 19 Jul 2023 20:03:04 +0000 (20:03 +0000)
server/sonar-web/src/main/js/app/components/indexation/IndexationNotification.tsx

index d1d96f6f0812b53dd8df80f93217eeb238f7672b..da2d32cea3ec5b2b6ef6aabfde4ca10ddcf71c32 100644 (file)
@@ -97,7 +97,7 @@ export class IndexationNotification extends React.PureComponent<Props, State> {
       },
     } = this.props;
 
-    return (
+    return !this.isSystemAdmin ? null : (
       <IndexationNotificationRenderer
         type={notificationType}
         percentCompleted={percentCompleted}