]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16782 [893330] Instructions rely on ability to see
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 9 Aug 2022 11:41:36 +0000 (13:41 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 11 Aug 2022 20:03:48 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/facet/MultipleSelectionHint.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 3d72062afbd7f668605274fdd763ccf0c759a0fd..10aa4f570a63390353a9f08310b24e5e93d96d34 100644 (file)
@@ -21,14 +21,16 @@ import * as React from 'react';
 import { translate } from '../../helpers/l10n';
 import './MultipleSelectionHint.css';
 
-interface Props {
+export interface MultipleSelectionHintProps {
   options: number;
   values: number;
 }
 
-export default function MultipleSelectionHint({ options, values }: Props) {
+const MAX_OPTIONS = 2;
+
+export default function MultipleSelectionHint({ options, values }: MultipleSelectionHintProps) {
   // do not render if nothing is selected or there are less than 2 possible options
-  if (values === 0 || options < 2) {
+  if (values === 0 || options < MAX_OPTIONS) {
     return null;
   }
 
index bb735e199a5688f2fdbf66cacce76e62ac84c48f..fbf1f85bb05909a809b0850b9c2487783e4d78b5 100644 (file)
@@ -1393,8 +1393,8 @@ help.section.tutorials=Tutorials
 shortcuts.section.global=Global
 shortcuts.section.global.search=quickly open search bar
 shortcuts.section.global.shortcuts=open this window
-shortcuts.section.global.facets.multiselection=Ctrl + click to add to selection
-shortcuts.section.global.facets.multiselection.mac=\u2318 + click to add to selection
+shortcuts.section.global.facets.multiselection=Press Ctrl to add to selection
+shortcuts.section.global.facets.multiselection.mac=Press \u2318 to add to selection
 
 shortcuts.section.issues=Issues Page
 shortcuts.section.issues.navigate_between_issues=navigate between issues