Skip to content

Commit

Permalink
fix: shorten expression/filter labels
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 11, 2024
1 parent c5a95f0 commit ee88b99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
6 changes: 1 addition & 5 deletions src/components/DataDimension/Info/CalculationInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ export const CalculationInfo = ({ id, displayNameProp }) => {
<>
<InfoTable data={data?.calculation} loading={loading} error={error}>
<tr>
<th>
{i18n.t(
'Expression description in human readable format'
)}
</th>
<th>{i18n.t('Expression description')}</th>
<td>
{data?.calculation.humanReadableExpression ||
i18n.t('None')}
Expand Down
12 changes: 2 additions & 10 deletions src/components/DataDimension/Info/IndicatorInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ export const IndicatorInfo = ({ id, displayNameProp }) => {
<td>{data?.indicator.displayNumeratorDescription}</td>
</tr>
<tr>
<th>
{i18n.t(
'Numerator expression in human readable format'
)}
</th>
<th>{i18n.t('Numerator expression')}</th>
<td>
{data?.indicator.humanReadableNumeratorExpression ||
i18n.t('None')}
Expand All @@ -87,11 +83,7 @@ export const IndicatorInfo = ({ id, displayNameProp }) => {
<td>{data?.indicator.displayDenominatorDescription}</td>
</tr>
<tr>
<th>
{i18n.t(
'Denominator expression in human readable format'
)}
</th>
<th>{i18n.t('Denominator expression')}</th>
<td>
{data?.indicator.humanReadableDenominatorExpression ||
i18n.t('None')}
Expand Down
6 changes: 2 additions & 4 deletions src/components/DataDimension/Info/ProgramIndicatorInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,14 @@ export const ProgramIndicatorInfo = ({ id, displayNameProp }) => {
</td>
</tr>
<tr>
<th>{i18n.t('Expression in human readable format')}</th>
<th>{i18n.t('Expression')}</th>
<td>
{data?.programIndicator.humanReadableExpression ||
i18n.t('None')}
</td>
</tr>
<tr>
<th>
{i18n.t('Filter expression in human readable format')}
</th>
<th>{i18n.t('Filter expression')}</th>
<td>
{data?.programIndicator.humanReadableFilter ||
i18n.t('None')}
Expand Down

0 comments on commit ee88b99

Please sign in to comment.