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

* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
import * as React from 'react'; import * as React from 'react';
import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip';
import { translate } from 'sonar-ui-common/helpers/l10n'; import { translate } from 'sonar-ui-common/helpers/l10n';


interface Props { interface Props {
export default function UserScmAccounts({ user, scmAccounts }: Props) { export default function UserScmAccounts({ user, scmAccounts }: Props) {
return ( return (
<div> <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"> <ul id="scm-accounts">
<li className="little-spacer-bottom text-ellipsis" title={user.login}> <li className="little-spacer-bottom text-ellipsis" title={user.login}>
{user.login} {user.login}

+ 1
- 0
sonar-core/src/main/resources/org/sonar/l10n/core.properties View File

my_profile.email=Email my_profile.email=Email
my_profile.groups=Groups my_profile.groups=Groups
my_profile.scm_accounts=SCM Accounts 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.title=Change password
my_profile.password.old=Old Password my_profile.password.old=Old Password
my_profile.password.new=New Password my_profile.password.new=New Password

Loading…
Cancel
Save