aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/utils.ts8
4 files changed, 14 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
index f4dbb7d1490..31a2a546614 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
+++ b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
@@ -85,7 +85,7 @@ export default function AuditAppRenderer(props: AuditAppRendererProps) {
id="audit_logs.page.description.2"
defaultMessage={translate('audit_logs.page.description.2')}
values={{
- housekeeping: translate('audit_logs.houskeeping_policy', housekeepingPolicy),
+ housekeeping: translate('audit_logs.housekeeping_policy', housekeepingPolicy),
link: (
<Link to={{ pathname: '/admin/settings', query: { category: 'housekeeping' } }}>
{translate('audit_logs.page.description.link')}
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap
index 6958c37fd2a..7520c26fee4 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render correctly 1`] = `
handleDateSelection={[Function]}
handleOptionSelection={[Function]}
handleStartDownload={[Function]}
- housekeepingPolicy="monthly"
+ housekeepingPolicy="Monthly"
selection="today"
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap
index 703fa50eae2..ca6ddeeace7 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`should render correctly for monthly housekeeping policy 1`] = `
+exports[`should render correctly for Monthly housekeeping policy 1`] = `
<div
className="page page-limited"
id="marketplace-page"
@@ -32,7 +32,7 @@ exports[`should render correctly for monthly housekeeping policy 1`] = `
id="audit_logs.page.description.2"
values={
Object {
- "housekeeping": "audit_logs.houskeeping_policy.monthly",
+ "housekeeping": "audit_logs.housekeeping_policy.Monthly",
"link": <Link
onlyActiveOnIndex={false}
style={Object {}}
@@ -124,7 +124,7 @@ exports[`should render correctly for monthly housekeeping policy 1`] = `
</div>
`;
-exports[`should render correctly for trimestrial housekeeping policy 1`] = `
+exports[`should render correctly for Trimestrial housekeeping policy 1`] = `
<div
className="page page-limited"
id="marketplace-page"
@@ -156,7 +156,7 @@ exports[`should render correctly for trimestrial housekeeping policy 1`] = `
id="audit_logs.page.description.2"
values={
Object {
- "housekeeping": "audit_logs.houskeeping_policy.trimestrial",
+ "housekeeping": "audit_logs.housekeeping_policy.Trimestrial",
"link": <Link
onlyActiveOnIndex={false}
style={Object {}}
@@ -260,7 +260,7 @@ exports[`should render correctly for trimestrial housekeeping policy 1`] = `
</div>
`;
-exports[`should render correctly for weekly housekeeping policy 1`] = `
+exports[`should render correctly for Weekly housekeeping policy 1`] = `
<div
className="page page-limited"
id="marketplace-page"
@@ -292,7 +292,7 @@ exports[`should render correctly for weekly housekeeping policy 1`] = `
id="audit_logs.page.description.2"
values={
Object {
- "housekeeping": "audit_logs.houskeeping_policy.weekly",
+ "housekeeping": "audit_logs.housekeeping_policy.Weekly",
"link": <Link
onlyActiveOnIndex={false}
style={Object {}}
@@ -372,7 +372,7 @@ exports[`should render correctly for weekly housekeeping policy 1`] = `
</div>
`;
-exports[`should render correctly for yearly housekeeping policy 1`] = `
+exports[`should render correctly for Yearly housekeeping policy 1`] = `
<div
className="page page-limited"
id="marketplace-page"
@@ -404,7 +404,7 @@ exports[`should render correctly for yearly housekeeping policy 1`] = `
id="audit_logs.page.description.2"
values={
Object {
- "housekeeping": "audit_logs.houskeeping_policy.yearly",
+ "housekeeping": "audit_logs.housekeeping_policy.Yearly",
"link": <Link
onlyActiveOnIndex={false}
style={Object {}}
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/utils.ts b/server/sonar-web/src/main/js/apps/audit-logs/utils.ts
index f77590b1a69..47676bccb00 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/utils.ts
+++ b/server/sonar-web/src/main/js/apps/audit-logs/utils.ts
@@ -18,10 +18,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export enum HousekeepingPolicy {
- Weekly = 'weekly',
- Monthly = 'monthly',
- Trimestrial = 'trimestrial',
- Yearly = 'yearly'
+ Weekly = 'Weekly',
+ Monthly = 'Monthly',
+ Trimestrial = 'Trimestrial',
+ Yearly = 'Yearly'
}
export enum RangeOption {