Browse Source

SONAR-12563 Add help tooltip to SCM accounts section

tags/8.1.0.31237
Philippe Perrin 4 years ago
parent
commit
bb707122a8

+ 8
- 1
server/sonar-web/src/main/js/apps/account/profile/UserScmAccounts.tsx View 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}

+ 1
- 0
sonar-core/src/main/resources/org/sonar/l10n/core.properties View 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

Loading…
Cancel
Save