diff --git a/charts/cmc-citizen-frontend/Chart.yaml b/charts/cmc-citizen-frontend/Chart.yaml index 59f143ca1c..777013f601 100644 --- a/charts/cmc-citizen-frontend/Chart.yaml +++ b/charts/cmc-citizen-frontend/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: cmc-citizen-frontend home: https://github.com/hmcts/cmc-citizen-frontend -version: 4.1.57 +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 diff --git a/charts/cmc-citizen-frontend/values.yaml b/charts/cmc-citizen-frontend/values.yaml index a4e0998163..4189f9a7e2 100644 --- a/charts/cmc-citizen-frontend/values.yaml +++ b/charts/cmc-citizen-frontend/values.yaml @@ -51,6 +51,7 @@ nodejs: AUTO_ENROLL_INTO_NEW_FEATURE: true FEATURE_BREATHING_SPACE: false FEES_API_KEYWORDS_ENABLE: false + FEATURE_DISABLE_PAGES: false keyVaults: cmc: diff --git a/config/custom-environment-variables.json b/config/custom-environment-variables.json index 739ee153bb..5c9c42ecc4 100644 --- a/config/custom-environment-variables.json +++ b/config/custom-environment-variables.json @@ -88,7 +88,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": { diff --git a/config/default.json b/config/default.json index 1f7b750c42..721917794c 100644 --- a/config/default.json +++ b/config/default.json @@ -99,7 +99,8 @@ "dashboard_pagination_enabled": false, "breathingSpace": true, "newClaimFees": true, - "feeKeywordsEnable": false + "feeKeywordsEnable": false, + "disablePages": false }, "oauth": { "clientId": "cmc_citizen" diff --git a/src/main/app.ts b/src/main/app.ts index 5ffdc0c11d..e64b424405 100644 --- a/src/main/app.ts +++ b/src/main/app.ts @@ -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) diff --git a/src/main/features/dashboard/views/index.njk b/src/main/features/dashboard/views/index.njk index 5f0572c3c3..7187d09dd4 100644 --- a/src/main/features/dashboard/views/index.njk +++ b/src/main/features/dashboard/views/index.njk @@ -9,7 +9,7 @@ {% include "./banner/banner-claim-threshold.njk" %}