diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2019-10-11 09:20:59 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-10-16 11:09:14 +0200 |
commit | bb707122a8dba99ce7c8f2e122b121fdce90ff6c (patch) | |
tree | de844197328f684f688d52c77671c135660c96aa | |
parent | 21c38437dd2e67470c658485a29f4fbc209b04eb (diff) | |
download | sonarqube-bb707122a8dba99ce7c8f2e122b121fdce90ff6c.tar.gz sonarqube-bb707122a8dba99ce7c8f2e122b121fdce90ff6c.zip |
SONAR-12563 Add help tooltip to SCM accounts section
-rw-r--r-- | server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx | 9 | ||||
-rw-r--r-- | sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx b/server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx index 194c837432b..9055fc5de7f 100644 --- a/server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx +++ b/server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx @@ -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} diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index ed073fb0493..28684bdc758 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -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 |