Skip to content

Commit

Permalink
fix: hide program indicators from TE
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Feb 26, 2024
1 parent 267c069 commit e830170
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,17 @@ const ProgramDimensionsFilter = ({
}
/>
)}
<SingleSelectOption
label={i18n.t('Program indicator')}
value={DIMENSION_TYPE_PROGRAM_INDICATOR}
icon={
<DimensionIcon
dimensionType={DIMENSION_TYPE_PROGRAM_INDICATOR}
/>
}
/>
{useSelector(sGetUiInputType) !== OUTPUT_TYPE_TRACKED_ENTITY && (
<SingleSelectOption
label={i18n.t('Program indicator')}
value={DIMENSION_TYPE_PROGRAM_INDICATOR}
icon={
<DimensionIcon
dimensionType={DIMENSION_TYPE_PROGRAM_INDICATOR}
/>
}
/>
)}
<SingleSelectOption
label={i18n.t('Category')}
value={DIMENSION_TYPE_CATEGORY}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const createDimensionsQuery = ({

if (inputType === OUTPUT_TYPE_TRACKED_ENTITY) {
params.filter.push('dimensionType:ne:PROGRAM_ATTRIBUTE')
params.filter.push('dimensionType:ne:PROGRAM_INDICATOR')
}

/*
Expand Down

0 comments on commit e830170

Please sign in to comment.