diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-07 14:39:54 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-12-07 14:39:54 +0100 |
commit | cda9a5bbef193e9d7c7e0b31d1cac3818d9b8837 (patch) | |
tree | 5db91012695c4a362673bda24ca19048fd2d2587 /server/sonar-web | |
parent | 0895d8e9636d72bd89dee15af5b36c145c54c74b (diff) | |
download | sonarqube-cda9a5bbef193e9d7c7e0b31d1cac3818d9b8837.tar.gz sonarqube-cda9a5bbef193e9d7c7e0b31d1cac3818d9b8837.zip |
SONAR-8451 disable issues bulk change and the project history page
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js | 9 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/templates/issues-workspace-header.hbs | 12 |
2 files changed, 16 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js index dd16345bf43..52ed1e348a5 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js +++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js @@ -185,7 +185,14 @@ export default class ComponentNavMenu extends React.Component { return null; } const url = `/project/history?id=${encodeURIComponent(this.props.component.key)}`; - return this.renderLink(url, translate('project_history.page'), '/project/history'); + // return this.renderLink(url, translate('project_history.page'), '/project/history'); + return ( + <li key={url}> + <span className="text-muted" style={{ cursor: 'not-allowed', textDecoration: 'line-through' }}> + {translate('project_history.page')} + </span> + </li> + ); } renderBackgroundTasksLink () { diff --git a/server/sonar-web/src/main/js/apps/issues/templates/issues-workspace-header.hbs b/server/sonar-web/src/main/js/apps/issues/templates/issues-workspace-header.hbs index 39a8192178f..44325865dd0 100644 --- a/server/sonar-web/src/main/js/apps/issues/templates/issues-workspace-header.hbs +++ b/server/sonar-web/src/main/js/apps/issues/templates/issues-workspace-header.hbs @@ -12,7 +12,8 @@ </div> {{#if subProject}} <div class="component-name-parent"> - {{qualifierIcon "TRK"}} <a href="{{dashboardUrl subProject}}" title="{{subProjectName}}">{{subProjectName}}</a> + {{qualifierIcon "TRK"}} <a href="{{dashboardUrl subProject}}" + title="{{subProjectName}}">{{subProjectName}}</a> </div> {{/if}} <div class="component-name-file"> @@ -22,8 +23,9 @@ {{else}} {{#if state.canBulkChange}} - <a class="js-selection icon-checkbox {{#if allSelected}}icon-checkbox-checked{{/if}} {{#if someSelected}}icon-checkbox-checked icon-checkbox-single{{/if}}" - data-toggle="tooltip" title="{{t 'issues.toggle_selection_tooltip'}}"></a> + <a class="js-selection icon-checkbox {{#if allSelected}}icon-checkbox-checked{{/if}} {{#if + someSelected}}icon-checkbox-checked icon-checkbox-single{{/if}}" + data-toggle="tooltip" title="{{t 'issues.toggle_selection_tooltip'}}"></a> {{else}} {{/if}} @@ -58,7 +60,9 @@ <button id="issues-reload" class="js-reload">{{t "reload"}}</button> <button class="js-new-search" id="issues-new-search">{{t "issue_filter.new_search"}}</button> {{#if state.canBulkChange}} - <button id="issues-bulk-change" class="dropdown-toggle" data-toggle="dropdown">{{t "bulk_change"}}</button> + <button id="issues-bulk-change" class="dropdown-toggle" data-toggle="dropdown" disabled> + {{t "bulk_change"}} + </button> <ul class="dropdown-menu dropdown-menu-right"> <li> <a class="js-bulk-change" href="#">{{tp 'issues.bulk_change' state.total}}</a> |