diff --git a/.gitignore b/.gitignore index dc0adb7..918c159 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ build/metadata.json reports/ logs/ vault/ -*.tar.gz \ No newline at end of file +*.tar.gz +package-lock.json diff --git a/app/components/CreateSDBoxForm/CreateSDBoxForm.js b/app/components/CreateSDBoxForm/CreateSDBoxForm.js index 17f851b..0444ce1 100644 --- a/app/components/CreateSDBoxForm/CreateSDBoxForm.js +++ b/app/components/CreateSDBoxForm/CreateSDBoxForm.js @@ -127,6 +127,7 @@ export default class CreateSDBoxForm extends Component { { dispatch(touch(formName, owner.name)) }} /> diff --git a/app/components/EditSDBoxForm/EditSDBoxForm.js b/app/components/EditSDBoxForm/EditSDBoxForm.js index 59d4c7b..454e63c 100644 --- a/app/components/EditSDBoxForm/EditSDBoxForm.js +++ b/app/components/EditSDBoxForm/EditSDBoxForm.js @@ -54,6 +54,7 @@ class EditSDBoxForm extends Component { { dispatch(touch(formName, owner.name)) }} /> diff --git a/app/components/GroupSelect/GroupsSelect.js b/app/components/GroupSelect/GroupsSelect.js index 3273e8c..7a99df7 100644 --- a/app/components/GroupSelect/GroupsSelect.js +++ b/app/components/GroupSelect/GroupsSelect.js @@ -6,7 +6,7 @@ import log from 'logger' export default class GroupsSelect extends Component { render() { - const {userGroups, value, onChange, handleBeingTouched, touched, error} = this.props + const {userGroups, allowCustomValues, value, onChange, handleBeingTouched, touched, error} = this.props var options = userGroups.map(function(group) { return {label: group, value: group} @@ -28,13 +28,24 @@ export default class GroupsSelect extends Component { return (
- { handleBeingTouched(); onChange(v)}} - onBlur={() => { handleBeingTouched() }} - value={value} - placeholder="Select a user group" - options={options} /> + { allowCustomValues && + { handleBeingTouched(); onChange(v)}} + onBlur={() => { handleBeingTouched() }} + value={value} + placeholder="Select a user group" + options={options} /> + } + { !allowCustomValues && +