-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds "Display organisation unit hierarchy" to the Style tab of the Options dialog for Pivot * Adds "Only include completed events" to the Data tab of the Options dialog for Pivot
- Loading branch information
1 parent
0d05612
commit 6aea633
Showing
3 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 10 additions & 6 deletions
16
packages/app/src/components/VisualizationOptions/Options/CompletedOnly.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import React from 'react' | ||
|
||
import i18n from '@dhis2/d2-i18n' | ||
import { Label } from '@dhis2/ui-core' | ||
|
||
import CheckboxBaseOption from './CheckboxBaseOption' | ||
|
||
const CompletedOnly = () => ( | ||
<CheckboxBaseOption | ||
label={i18n.t('Include only completed events')} | ||
option={{ | ||
name: 'completedOnly', | ||
}} | ||
/> | ||
<div> | ||
<Label>{i18n.t('Event data')}</Label> | ||
<CheckboxBaseOption | ||
label={i18n.t('Only include completed events')} | ||
option={{ | ||
name: 'completedOnly', | ||
}} | ||
/> | ||
</div> | ||
) | ||
|
||
export default CompletedOnly |
3 changes: 1 addition & 2 deletions
3
packages/app/src/components/VisualizationOptions/Options/ShowHierarchy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters