Skip to content

Commit

Permalink
Merge pull request #470 from lblod/karel/lmb-1166-disable-count-warni…
Browse files Browse the repository at this point in the history
…ngs-for-now

disable count warnings for now
  • Loading branch information
Rahien authored Jan 24, 2025
2 parents 1ab3457 + 74189a7 commit 46a7ef9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/min-max-mandataris-warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {

export default class MinMaxMandatarisWarningComponent extends Component {
@service store;
@service features;
@tracked warningMessages;
@tracked currentIndex = 0;

Expand All @@ -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];
}

Expand Down
2 changes: 2 additions & 0 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}}',
Expand All @@ -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;
Expand Down

0 comments on commit 46a7ef9

Please sign in to comment.