From 74189a723b4f0ed623fcf97b9dc130f8105e32b8 Mon Sep 17 00:00:00 2001 From: karel kremer Date: Fri, 24 Jan 2025 14:42:32 +0100 Subject: [PATCH] disable count warnings for now --- app/components/min-max-mandataris-warning.js | 4 ++++ config/environment.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/components/min-max-mandataris-warning.js b/app/components/min-max-mandataris-warning.js index 8a72c41e7..1c035429d 100644 --- a/app/components/min-max-mandataris-warning.js +++ b/app/components/min-max-mandataris-warning.js @@ -12,6 +12,7 @@ import { export default class MinMaxMandatarisWarningComponent extends Component { @service store; + @service features; @tracked warningMessages; @tracked currentIndex = 0; @@ -38,6 +39,9 @@ export default class MinMaxMandatarisWarningComponent extends Component { } get currentWarningMessage() { + if (!this.features.isEnabled('enable-mandataris-count-warnings')) { + return null; + } return this.warningMessages?.[this.currentIndex]; } diff --git a/config/environment.js b/config/environment.js index a681dd122..d3396a00f 100644 --- a/config/environment.js +++ b/config/environment.js @@ -34,6 +34,7 @@ module.exports = function (environment) { }, features: { 'show-forms-module': false, + 'enable-mandataris-count-warnings': false, }, lpdcUrl: '{{LPDC_URL}}', worshipDecisionsDatabaseUrl: '{{WORSHIP_DECISIONS_DATABASE_URL}}', @@ -59,6 +60,7 @@ module.exports = function (environment) { if (environment === 'development') { ENV.APP.DISABLE_RELOAD_WARNINGS = true; ENV.APP.SHOW_FORM_CONTENT = true; + ENV.features['enable-mandataris-count-warnings'] = true; // ENV.APP.LOG_RESOLVER = true; // ENV.APP.LOG_ACTIVE_GENERATION = true; // ENV.APP.LOG_TRANSITIONS = true;