aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx b/server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx
index c0fd6951d4d..6530c793130 100644
--- a/server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx
+++ b/server/sonar-web/src/main/js/components/common/AnalysisWarningsModal.tsx
@@ -51,7 +51,7 @@ export class AnalysisWarningsModal extends React.PureComponent<Props, State> {
super(props);
this.state = {
loading: !props.warnings,
- warnings: props.warnings || []
+ warnings: props.warnings || [],
};
}
@@ -107,7 +107,7 @@ export class AnalysisWarningsModal extends React.PureComponent<Props, State> {
if (this.mounted) {
this.setState({
loading: false,
- warnings: warnings.map(w => ({ key: w, message: w, dismissable: false }))
+ warnings: warnings.map((w) => ({ key: w, message: w, dismissable: false })),
});
}
} catch (e) {
@@ -138,7 +138,7 @@ export class AnalysisWarningsModal extends React.PureComponent<Props, State> {
<span
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
- __html: sanitizeStringRestricted(message.trim().replace(/\n/g, '<br />'))
+ __html: sanitizeStringRestricted(message.trim().replace(/\n/g, '<br />')),
}}
/>
@@ -148,7 +148,8 @@ export class AnalysisWarningsModal extends React.PureComponent<Props, State> {
disabled={Boolean(dismissedWarning)}
onClick={() => {
this.handleDismissMessage(key);
- }}>
+ }}
+ >
{translate('dismiss_permanently')}
</ButtonLink>
{dismissedWarning === key && <i className="spinner spacer-left" />}