diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/components')
3 files changed, 31 insertions, 37 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/App.tsx b/server/sonar-web/src/main/js/apps/issues/components/App.tsx index 8e079deebbe..8fe9d110644 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/App.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/App.tsx @@ -884,13 +884,12 @@ export class App extends React.PureComponent<Props, State> { return ( <div className="layout-page-filters"> - {currentUser.isLoggedIn && - !isSonarCloud() && ( - <MyIssuesFilter - myIssues={this.state.myIssues} - onMyIssuesChange={this.handleMyIssuesChange} - /> - )} + {currentUser.isLoggedIn && !isSonarCloud() && ( + <MyIssuesFilter + myIssues={this.state.myIssues} + onMyIssuesChange={this.handleMyIssuesChange} + /> + )} <FiltersHeader displayReset={this.isFiltered()} onReset={this.handleReset} /> <Sidebar component={component} @@ -936,15 +935,14 @@ export class App extends React.PureComponent<Props, State> { selectedFlowIndex={this.state.selectedFlowIndex} selectedLocationIndex={this.state.selectedLocationIndex} /> - {paging && - paging.total > 0 && ( - <ListFooter - count={issues.length} - loadMore={this.fetchMoreIssues} - loading={loadingMore} - total={paging.total} - /> - )} + {paging && paging.total > 0 && ( + <ListFooter + count={issues.length} + loadMore={this.fetchMoreIssues} + loading={loadingMore} + total={paging.total} + /> + )} </div> ); } @@ -1065,17 +1063,15 @@ export class App extends React.PureComponent<Props, State> { /> ) : ( <DeferredSpinner loading={loading}> - {checkAll && - paging && - paging.total > MAX_PAGE_SIZE && ( - <Alert className="big-spacer-bottom" variant="warning"> - <FormattedMessage - defaultMessage={translate('issue_bulk_change.max_issues_reached')} - id="issue_bulk_change.max_issues_reached" - values={{ max: <strong>{MAX_PAGE_SIZE}</strong> }} - /> - </Alert> - )} + {checkAll && paging && paging.total > MAX_PAGE_SIZE && ( + <Alert className="big-spacer-bottom" variant="warning"> + <FormattedMessage + defaultMessage={translate('issue_bulk_change.max_issues_reached')} + id="issue_bulk_change.max_issues_reached" + values={{ max: <strong>{MAX_PAGE_SIZE}</strong> }} + /> + </Alert> + )} {this.renderList()} </DeferredSpinner> )} diff --git a/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx b/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx index 7700efb6cf1..0b9cac8f4bb 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx @@ -68,14 +68,12 @@ export default function ComponentBreadcrumbs({ </span> )} - {displaySubProject && - issue.subProject !== undefined && - issue.subProjectName !== undefined && ( - <span title={issue.subProjectName}> - {limitComponentName(issue.subProjectName)} - <span className="slash-separator" /> - </span> - )} + {displaySubProject && issue.subProject !== undefined && issue.subProjectName !== undefined && ( + <span title={issue.subProjectName}> + {limitComponentName(issue.subProjectName)} + <span className="slash-separator" /> + </span> + )} {collapsePath(componentName || '')} </div> diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx index 58bcdbaad93..fbaa4feb644 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx @@ -88,8 +88,8 @@ export default class IssuesSourceViewer extends React.PureComponent<Props> { : openIssue.textRange && openIssue.textRange.endLine; // replace locations in another file with `undefined` to keep the same location indexes - const highlightedLocations = locations.map( - location => (location.component === component ? location : undefined) + const highlightedLocations = locations.map(location => + location.component === component ? location : undefined ); const highlightedLocationMessage = |