Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/DTSCCI-830' into DTSCCI-830
Browse files Browse the repository at this point in the history
  • Loading branch information
EllisD-B committed Sep 12, 2024
2 parents e6c8388 + 818b3a1 commit 214aa3a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/cmc-citizen-frontend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: cmc-citizen-frontend
home: https://github.com/hmcts/cmc-citizen-frontend
version: 4.1.54
version: 4.1.56
description: Helm chart for the HMCTS CMC Citizen Frontend service
# be aware when bumping version that it is used elsewhere, e.g.:
# chart-cmc - demo: https://github.com/hmcts/chart-cmc/tree/master/cmc
Expand Down
1 change: 1 addition & 0 deletions charts/cmc-citizen-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ nodejs:
AUTO_ENROLL_INTO_NEW_FEATURE: true
FEATURE_BREATHING_SPACE: false
FEES_API_KEYWORDS_ENABLE: false
FEATURE_DISABLE_PAGES: false

keyVaults:
cmc:
Expand Down
3 changes: 2 additions & 1 deletion config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"dashboard_pagination_enabled": "dashboard_pagination_enabled",
"breathingSpace": "FEATURE_BREATHING_SPACE",
"newClaimFees": "FEATURE_NEW_CLAIM_FEES",
"feeKeywordsEnable": "FEES_API_KEYWORDS_ENABLE"
"feeKeywordsEnable": "FEES_API_KEYWORDS_ENABLE",
"disablePages": "FEATURE_DISABLE_PAGES"
},

"oauth": {
Expand Down
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
"dashboard_pagination_enabled": false,
"breathingSpace": true,
"newClaimFees": true,
"feeKeywordsEnable": false
"feeKeywordsEnable": false,
"disablePages": false
},
"oauth": {
"clientId": "cmc_citizen"
Expand Down
12 changes: 7 additions & 5 deletions src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ if (env !== 'mocha') {
new CsrfProtection().enableFor(app)
}

logger.info('Loading EligibilityFeature')
new EligibilityFeature().enableFor(app)

logger.info('Loading DashboardFeature')
new DashboardFeature().enableFor(app)

logger.info('Loading ClaimIssueFeature')
new ClaimIssueFeature().enableFor(app)
if (!FeatureToggles.isEnabled('disablePages')) {
logger.info('Loading EligibilityFeature')
new EligibilityFeature().enableFor(app)

logger.info('Loading ClaimIssueFeature')
new ClaimIssueFeature().enableFor(app)
}

logger.info('Loading DefendantFirstContactFeature')
new DefendantFirstContactFeature().enableFor(app)
Expand Down
4 changes: 2 additions & 2 deletions src/main/features/dashboard/views/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% include "./banner/banner-claim-threshold.njk" %}
<div class="grid-row">
<div class="column-full">
{% if not claimDraftSaved %}
{% if not claimDraftSaved and not featureToggles.disablePages %}
{{ internalLink(t('Make a new money claim'), EligibilityPaths.startPage.uri, 'newclaim', 'start-now') }}
{% endif %}
{% if claimsAsClaimant | length or claimDraftSaved %}
Expand All @@ -31,7 +31,7 @@
</tr>
</thead>
<tbody>
{% if claimDraftSaved %}
{% if claimDraftSaved and not featureToggles.disablePages %}
<tr class="draft mobile-table">
<td>{{ internalLink(t('Draft claim'), DashboardPaths.claimantPage.evaluateUri({ externalId: 'draft' })) }}</td>
<td>-</td>
Expand Down

0 comments on commit 214aa3a

Please sign in to comment.