-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disable manual coordinate by configuration [DHIS2-17632] (#198)
* feat: create manual location checkbox component * feat: add manual location specific program * feat: regenerate en.pot
- Loading branch information
Showing
6 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import i18n from '@dhis2/d2-i18n' | ||
import PropTypes from 'prop-types' | ||
import React from 'react' | ||
import { DISABLE_MANUAL_LOCATION } from '../../constants' | ||
import { CheckboxField } from './CheckboxField' | ||
|
||
export const DisableManualLocation = ({ handleChange, settings }) => ( | ||
<CheckboxField | ||
name={DISABLE_MANUAL_LOCATION} | ||
label={i18n.t('Disable manual location capture')} | ||
onChange={handleChange} | ||
checked={settings[DISABLE_MANUAL_LOCATION]} | ||
/> | ||
) | ||
|
||
DisableManualLocation.propTypes = { | ||
handleChange: PropTypes.func, | ||
settings: PropTypes.object, | ||
} |
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
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