Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarBakker committed Feb 14, 2024
1 parent f0c9ca8 commit 0bb1eb8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/server/services/buurt/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export const datasetEndpoints: Record<
request: fetchLaadpalen,
cancelTimeout: 30000,
},
disabled: IS_PRODUCTION || !FeatureToggle.laadpalenActive,
disabled: !FeatureToggle.laadpalenActive,
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/universal/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const FeatureToggle = {
stadspasRequestsActive: false,
dbDisabled: false,
passQueryParamsToStreamUrl: !IS_AP,
laadpalenActive: false,
laadpalenActive: !IS_PRODUCTION,
};

// For testing and development purposes we can pass a set of arbitrary parameters to the BFF.
Expand Down
37 changes: 16 additions & 21 deletions src/universal/config/myarea-datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,25 @@ const month = new Date().getMonth();
if (month !== 11 && month !== 0) {
excludeFractieOmschrijving.push('Kerstboom');
}
FeatureToggle.laadpalenActive;
export const DATASETS: DatasetCategories = {
...(FeatureToggle.laadpalenActive
? {
laadpalen: {
title: 'Laadpalen',
datasets: {
laadpalen: {
title: 'Laadpalen',
filters: {
connector_type: {
title: 'Connector type',
sort: 'asc',
},
charging_cap_max: {
title: 'Wattage',
sort: 'asc',
},
},
},
laadpalen: {
title: 'Laadpalen',
datasets: {
laadpalen: {
title: 'Laadpalen',
filters: {
connector_type: {
title: 'Connector type',
sort: 'asc',
},
charging_cap_max: {
title: 'Wattage',
sort: 'asc',
},
},
}
: {}),
},
},
},
afvalcontainers: {
title: 'Afvalcontainers',
datasets: {
Expand Down

0 comments on commit 0bb1eb8

Please sign in to comment.