]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12563 Add help tooltip to SCM accounts section
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Fri, 11 Oct 2019 07:20:59 +0000 (09:20 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 16 Oct 2019 09:09:14 +0000 (11:09 +0200)
server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 194c837432b2f868a9dc3070d36882d57dd4db82..9055fc5de7fceafbc8373f15dd1e875cdd5c17e0 100644 (file)
@@ -18,6 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 import * as React from 'react';
+import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 
 interface Props {
@@ -28,7 +29,13 @@ interface Props {
 export default function UserScmAccounts({ user, scmAccounts }: Props) {
   return (
     <div>
-      <h2 className="spacer-bottom">{translate('my_profile.scm_accounts')}</h2>
+      <h2 className="spacer-bottom">
+        {translate('my_profile.scm_accounts')}
+        <HelpTooltip
+          className="little-spacer-left"
+          overlay={translate('my_profile.scm_accounts.tooltip')}
+        />
+      </h2>
       <ul id="scm-accounts">
         <li className="little-spacer-bottom text-ellipsis" title={user.login}>
           {user.login}
index ed073fb04937002ba25128f3da26fc2713eac013..28684bdc7582643e4a42367f34543d509604e091 100644 (file)
@@ -1571,6 +1571,7 @@ my_profile.delete_account.verify=To verify, please type your user account name b
 my_profile.email=Email
 my_profile.groups=Groups
 my_profile.scm_accounts=SCM Accounts
+my_profile.scm_accounts.tooltip=SCM accounts are used for automatic issue assignment. Login and email are automatically considered as SCM account.
 my_profile.password.title=Change password
 my_profile.password.old=Old Password
 my_profile.password.new=New Password