]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19486 Hide keyboard hints in measures page treemap view
author7PH <benjamin.raymond@sonarsource.com>
Tue, 4 Jul 2023 09:03:53 +0000 (11:03 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 4 Jul 2023 20:03:09 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/component-measures/components/MeasureContent.tsx

index f17ec554765d602c2a77ee00e3e8de1768d1864d..e217c1e72231950a4f67f1c2a4cfebc19951779b 100644 (file)
@@ -383,16 +383,20 @@ export default class MeasureContent extends React.PureComponent<Props, State> {
                     view={view}
                   />
 
-                  <KeyboardHint
-                    className="sw-mr-4 sw-ml-6"
-                    command={`${KeyboardKeys.DownArrow} ${KeyboardKeys.UpArrow}`}
-                    title={translate('component_measures.select_files')}
-                  />
-
-                  <KeyboardHint
-                    command={`${KeyboardKeys.LeftArrow} ${KeyboardKeys.RightArrow}`}
-                    title={translate('component_measures.navigate')}
-                  />
+                  {view !== MeasurePageView.treemap && (
+                    <>
+                      <KeyboardHint
+                        className="sw-mr-4 sw-ml-6"
+                        command={`${KeyboardKeys.DownArrow} ${KeyboardKeys.UpArrow}`}
+                        title={translate('component_measures.select_files')}
+                      />
+
+                      <KeyboardHint
+                        command={`${KeyboardKeys.LeftArrow} ${KeyboardKeys.RightArrow}`}
+                        title={translate('component_measures.navigate')}
+                      />
+                    </>
+                  )}
 
                   {paging && paging.total > 0 && (
                     <FilesCounter