Skip to content

Commit

Permalink
CM-501: adjust frontend to individual custom filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Feb 8, 2024
1 parent 8e6408a commit de8a0c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/GroupSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import {
DEFAULT_PAGE_SIZE,
ROWS_PER_PAGE_OPTIONS,
RIGHT_GROUP_UPDATE, RIGHT_GROUP_DELETE, SOCIAL_PROTECTION_MODULE_NAME, BENEFIT_PLAN_LABEL,
RIGHT_GROUP_UPDATE, RIGHT_GROUP_DELETE, INDIVIDUAL_MODULE_NAME, INDIVIDUAL_LABEL,
} from '../constants';
import GroupFilter from './GroupFilter';
import { applyNumberCircle } from '../util/searcher-utils';
Expand Down Expand Up @@ -229,8 +229,8 @@ function GroupSearcher({
cacheFiltersKey="groupsFilterCache"
resetFiltersOnUnmount
isCustomFiltering
moduleName={SOCIAL_PROTECTION_MODULE_NAME}
objectType={BENEFIT_PLAN_LABEL}
moduleName={INDIVIDUAL_MODULE_NAME}
objectType={INDIVIDUAL_LABEL}
additionalCustomFilterParams={{ type: 'GROUP' }}
appliedCustomFilters={appliedCustomFilters}
setAppliedCustomFilters={setAppliedCustomFilters}
Expand Down
8 changes: 4 additions & 4 deletions src/components/IndividualSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import {
EMPTY_STRING,
RIGHT_INDIVIDUAL_UPDATE,
RIGHT_INDIVIDUAL_DELETE,
BENEFIT_PLAN_LABEL,
SOCIAL_PROTECTION_MODULE_NAME,
RIGHT_SCHEMA_SEARCH,
FETCH_BENEFIT_PLAN_SCHEMA_FIELDS_REF,
INDIVIDUAL_MODULE_NAME,
INDIVIDUAL_LABEL,
} from '../constants';
import { applyNumberCircle } from '../util/searcher-utils';
import IndividualFilter from './IndividualFilter';
Expand Down Expand Up @@ -270,8 +270,8 @@ function IndividualSearcher({
exportable
exportFetch={downloadIndividuals}
isCustomFiltering
moduleName={SOCIAL_PROTECTION_MODULE_NAME}
objectType={BENEFIT_PLAN_LABEL}
moduleName={INDIVIDUAL_MODULE_NAME}
objectType={INDIVIDUAL_LABEL}
additionalCustomFilterParams={{ type: 'INDIVIDUAL' }}
appliedCustomFilters={appliedCustomFilters}
setAppliedCustomFilters={setAppliedCustomFilters}
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ export const BENEFIT_PLAN_LABEL = 'BenefitPlan';
export const INDIVIDUAL_LABEL = 'Individual';
export const GROUP_LABEL = 'Group';

export const SOCIAL_PROTECTION_MODULE_NAME = 'social_protection';
export const INDIVIDUAL_MODULE_NAME = 'individual';

export const FETCH_BENEFIT_PLAN_SCHEMA_FIELDS_REF = 'socialProtection.fetchBenefitPlanSchemaFields';

0 comments on commit de8a0c1

Please sign in to comment.