aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2023-01-16 12:19:52 +0100
committersonartech <sonartech@sonarsource.com>2023-01-16 20:03:43 +0000
commit3940b153fe70a090dd1bc6c44ab3c43e2727cbb1 (patch)
tree6bdda780aaa8f710ac7575ca0bbb83655c9e155a /server/sonar-web/src/main/js/apps
parentf026955b4766843a2a04d32a30ad48ab34ab766f (diff)
downloadsonarqube-3940b153fe70a090dd1bc6c44ab3c43e2727cbb1.tar.gz
sonarqube-3940b153fe70a090dd1bc6c44ab3c43e2727cbb1.zip
SONAR-18147 Status message not automatically announced
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap8
2 files changed, 10 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx
index 725d459607d..17f0cf3ce28 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx
@@ -20,6 +20,7 @@
import * as React from 'react';
import { getProfileChangelog } from '../../../api/quality-profiles';
import { Location, Router, withRouter } from '../../../components/hoc/withRouter';
+import DeferredSpinner from '../../../components/ui/DeferredSpinner';
import { parseDate, toShortNotSoISOString } from '../../../helpers/dates';
import { translate } from '../../../helpers/l10n';
import { withQualityProfilesContext } from '../qualityProfilesContext';
@@ -147,7 +148,7 @@ export class ChangelogContainer extends React.PureComponent<Props, State> {
onReset={this.handleReset}
/>
- {this.state.loading && <i className="spinner spacer-left" />}
+ <DeferredSpinner loading={this.state.loading} className="spacer-left" />
</header>
{this.state.events != null && this.state.events.length === 0 && <ChangelogEmpty />}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap
index e7347b5911f..a42e82c92c5 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap
@@ -17,6 +17,10 @@ exports[`should render correctly 1`] = `
onDateRangeChange={[Function]}
onReset={[Function]}
/>
+ <DeferredSpinner
+ className="spacer-left"
+ loading={false}
+ />
</header>
<Changelog
events={
@@ -81,6 +85,10 @@ exports[`should render correctly without events 1`] = `
onDateRangeChange={[Function]}
onReset={[Function]}
/>
+ <DeferredSpinner
+ className="spacer-left"
+ loading={false}
+ />
</header>
<ChangelogEmpty />
</div>