aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue/popups
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-08-29 11:38:53 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-09-13 13:53:58 +0200
commit793e86fce66f356099792b7231c9a1d949ff875e (patch)
tree8bd08099539c3cb1ff159823ee1d1f74a5f2c979 /server/sonar-web/src/main/js/components/issue/popups
parent736e89cc1629e1e52db00f67e4650f1b88695de9 (diff)
downloadsonarqube-793e86fce66f356099792b7231c9a1d949ff875e.tar.gz
sonarqube-793e86fce66f356099792b7231c9a1d949ff875e.zip
update prettier
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue/popups')
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js9
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/CommentDeletePopup.js4
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/SetAssigneePopup.js9
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/SetSeverityPopup.js4
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/SetTypePopup.js4
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js51
6 files changed, 41 insertions, 40 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js b/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js
index 01549d5dac7..ac9bfa546bb 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js
@@ -93,13 +93,13 @@ export default class ChangelogPopup extends React.PureComponent {
</td>
</tr>
- {this.state.changelogs.map((item, idx) =>
+ {this.state.changelogs.map((item, idx) => (
<tr key={idx}>
<td className="thin text-left text-top nowrap">
<DateTimeFormatter date={item.creationDate} />
</td>
<td className="text-left text-top">
- {item.userName &&
+ {item.userName && (
<p>
<Avatar
className="little-spacer-right"
@@ -108,11 +108,12 @@ export default class ChangelogPopup extends React.PureComponent {
size={16}
/>
{item.userName}
- </p>}
+ </p>
+ )}
{item.diffs.map(diff => <IssueChangelogDiff key={diff.key} diff={diff} />)}
</td>
</tr>
- )}
+ ))}
</tbody>
</table>
</div>
diff --git a/server/sonar-web/src/main/js/components/issue/popups/CommentDeletePopup.js b/server/sonar-web/src/main/js/components/issue/popups/CommentDeletePopup.js
index 428efc6a6b9..aed14996166 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/CommentDeletePopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/CommentDeletePopup.js
@@ -33,9 +33,7 @@ export default function CommentDeletePopup(props /*: Props */) {
return (
<BubblePopup position={props.popupPosition} customClass="bubble-popup-bottom-right">
<div className="text-right">
- <div className="spacer-bottom">
- {translate('issue.comment.delete_confirm_message')}
- </div>
+ <div className="spacer-bottom">{translate('issue.comment.delete_confirm_message')}</div>
<button className="button-red" onClick={props.onDelete}>
{translate('delete')}
</button>
diff --git a/server/sonar-web/src/main/js/components/issue/popups/SetAssigneePopup.js b/server/sonar-web/src/main/js/components/issue/popups/SetAssigneePopup.js
index 074f3345ba5..9c6b6187c65 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/SetAssigneePopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/SetAssigneePopup.js
@@ -145,23 +145,24 @@ export default class SetAssigneePopup extends React.PureComponent {
items={map(this.state.users, 'login')}
currentItem={this.state.currentUser}
onSelect={this.props.onSelect}>
- {this.state.users.map(user =>
+ {this.state.users.map(user => (
<SelectListItem key={user.login} item={user.login}>
- {!!user.login &&
+ {!!user.login && (
<Avatar
className="spacer-right"
email={user.email}
hash={user.avatar}
name={user.name}
size={16}
- />}
+ />
+ )}
<span
className="vertical-middle"
style={{ marginLeft: !user.login ? 24 : undefined }}>
{user.name}
</span>
</SelectListItem>
- )}
+ ))}
</SelectList>
</div>
</BubblePopup>
diff --git a/server/sonar-web/src/main/js/components/issue/popups/SetSeverityPopup.js b/server/sonar-web/src/main/js/components/issue/popups/SetSeverityPopup.js
index 033ea8e72a8..35c98b4a389 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/SetSeverityPopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/SetSeverityPopup.js
@@ -48,12 +48,12 @@ export default class SetSeverityPopup extends React.PureComponent {
items={SEVERITY}
currentItem={this.props.issue.severity}
onSelect={this.props.onSelect}>
- {SEVERITY.map(severity =>
+ {SEVERITY.map(severity => (
<SelectListItem key={severity} item={severity}>
<SeverityIcon className="little-spacer-right" severity={severity} />
{translate('severity', severity)}
</SelectListItem>
- )}
+ ))}
</SelectList>
</BubblePopup>
);
diff --git a/server/sonar-web/src/main/js/components/issue/popups/SetTypePopup.js b/server/sonar-web/src/main/js/components/issue/popups/SetTypePopup.js
index e3c4d466f28..9085235dea4 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/SetTypePopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/SetTypePopup.js
@@ -48,12 +48,12 @@ export default class SetTypePopup extends React.PureComponent {
items={TYPES}
currentItem={this.props.issue.type}
onSelect={this.props.onSelect}>
- {TYPES.map(type =>
+ {TYPES.map(type => (
<SelectListItem key={type} item={type}>
<IssueTypeIcon className="little-spacer-right" query={type} />
{translate('issue.type', type)}
</SelectListItem>
- )}
+ ))}
</SelectList>
</BubblePopup>
);
diff --git a/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js b/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js
index 4a2642f01ac..ca556766fc9 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js
@@ -68,9 +68,7 @@ export default class SimilarIssuesPopup extends React.PureComponent {
position={this.props.popupPosition}
customClass="bubble-popup-menu bubble-popup-bottom-right">
<header className="menu-search">
- <h6>
- {translate('issue.filter_similar_issues')}
- </h6>
+ <h6>{translate('issue.filter_similar_issues')}</h6>
</header>
<SelectList currentItem={items[0]} items={items} onSelect={this.handleSelect}>
@@ -88,48 +86,51 @@ export default class SimilarIssuesPopup extends React.PureComponent {
</SelectListItem>
<SelectListItem item="resolution">
- {issue.resolution != null
- ? translate('issue.resolution', issue.resolution)
- : translate('unresolved')}
+ {issue.resolution != null ? (
+ translate('issue.resolution', issue.resolution)
+ ) : (
+ translate('unresolved')
+ )}
</SelectListItem>
<SelectListItem item="assignee">
- {issue.assignee != null
- ? <span>
- {translate('assigned_to')}
- <Avatar
- className="little-spacer-left little-spacer-right"
- hash={issue.assigneeAvatar}
- name={issue.assigneeName}
- size={16}
- />
- {issue.assigneeName}
- </span>
- : translate('unassigned')}
+ {issue.assignee != null ? (
+ <span>
+ {translate('assigned_to')}
+ <Avatar
+ className="little-spacer-left little-spacer-right"
+ hash={issue.assigneeAvatar}
+ name={issue.assigneeName}
+ size={16}
+ />
+ {issue.assigneeName}
+ </span>
+ ) : (
+ translate('unassigned')
+ )}
</SelectListItem>
- <SelectListItem item="rule">
- {limitComponentName(issue.ruleName)}
- </SelectListItem>
+ <SelectListItem item="rule">{limitComponentName(issue.ruleName)}</SelectListItem>
{issue.tags != null &&
- issue.tags.map(tag =>
+ issue.tags.map(tag => (
<SelectListItem key={`tag###${tag}`} item={`tag###${tag}`}>
<i className="icon-tags icon-half-transparent little-spacer-right" />
{tag}
</SelectListItem>
- )}
+ ))}
<SelectListItem item="project">
<QualifierIcon className="little-spacer-right" qualifier="TRK" />
{issue.projectName}
</SelectListItem>
- {issue.subProject != null &&
+ {issue.subProject != null && (
<SelectListItem item="module">
<QualifierIcon className="little-spacer-right" qualifier="BRC" />
{issue.subProjectName}
- </SelectListItem>}
+ </SelectListItem>
+ )}
<SelectListItem item="file">
<QualifierIcon className="little-spacer-right" qualifier={issue.componentQualifier} />