Browse Source

apply feedback for the quality profiles page

tags/6.0-RC1
Stas Vilchik 8 years ago
parent
commit
c4290eed31

+ 11
- 18
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.js View File

@@ -130,18 +130,16 @@ export default class ProfileHeader extends React.Component {
<i className="icon-dropdown"/>
</button>
<ul className="dropdown-menu dropdown-menu-right">
<li>
<Link
to={{ pathname: '/compare', query: { key: profile.key } }}
id="quality-profile-compare">
{translate('compare')}
</Link>
</li>
<li>
<a href={activateMoreUrl}>
{translate('quality_profiles.activate_more_rules')}
</a>
</li>
<li>
<a id="quality-profile-backup" href={backupUrl}>
{translate('backup_verb')}
</a>
</li>
<li>
<Link
to={{ pathname: '/compare', query: { key: profile.key } }}
@@ -149,26 +147,21 @@ export default class ProfileHeader extends React.Component {
{translate('compare')}
</Link>
</li>
<li>
<a id="quality-profile-backup" href={backupUrl}>
{translate('backup_verb')}
</a>
</li>
{canAdmin && (
<li>
<a id="quality-profile-rename"
<a id="quality-profile-copy"
href="#"
onClick={this.handleRenameClick.bind(this)}>
{translate('rename')}
onClick={this.handleCopyClick.bind(this)}>
{translate('copy')}
</a>
</li>
)}
{canAdmin && (
<li>
<a id="quality-profile-copy"
<a id="quality-profile-rename"
href="#"
onClick={this.handleCopyClick.bind(this)}>
{translate('copy')}
onClick={this.handleRenameClick.bind(this)}>
{translate('rename')}
</a>
</li>
)}

+ 1
- 1
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js View File

@@ -75,7 +75,7 @@ export default class ProfileProjects extends React.Component {
e.target.blur();
new ChangeProjectsView({
profile: this.props.profile,
loadProjects: this.loadProjects
loadProjects: this.props.updateProfiles
}).render();
}


+ 7
- 4
server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesList.js View File

@@ -18,7 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
import { PropTypes as RouterPropTypes } from 'react-router';
import { Link, PropTypes as RouterPropTypes } from 'react-router';
import groupBy from 'lodash/groupBy';
import pick from 'lodash/pick';
import sortBy from 'lodash/sortBy';
@@ -56,13 +56,16 @@ export default class ProfilesList extends React.Component {
<thead>
<tr>
<th>
{language.name}
{' ('}
<Link
to={{ pathname: '/', query: { language: language.key } }}
className="link-base-color">
{language.name}
</Link>
{', '}
{translateWithParameters(
'quality_profiles.x_profiles',
profilesCount
)}
{')'}
{this.props.canAdmin && (
<button
className="huge-spacer-left js-restore-built-in"

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

@@ -1787,6 +1787,7 @@ quality_profiles.deprecated_rules=Deprecated Rules
quality_profiles.x_deprecated_rules_are_still_activated={0} deprecated rule(s) are still activated on {1} quality profile(s):
quality_profiles.stagnant_profiles=Stagnant Profiles
quality_profiles.not_updated_more_than_year=The following profiles haven't been updated for more than 1 year:
quality_profiles.exporters=Exporters




Loading…
Cancel
Save