diff --git a/scm-ui/src/repos/permissions/components/CreatePermissionForm.js b/scm-ui/src/repos/permissions/components/CreatePermissionForm.js index 23d9ba9e68..2a7d15658f 100644 --- a/scm-ui/src/repos/permissions/components/CreatePermissionForm.js +++ b/scm-ui/src/repos/permissions/components/CreatePermissionForm.js @@ -61,6 +61,7 @@ class CreatePermissionForm extends React.Component { /> diff --git a/scm-ui/src/repos/permissions/components/TypeSelector.js b/scm-ui/src/repos/permissions/components/TypeSelector.js index 53722298a4..043193c741 100644 --- a/scm-ui/src/repos/permissions/components/TypeSelector.js +++ b/scm-ui/src/repos/permissions/components/TypeSelector.js @@ -7,12 +7,14 @@ type Props = { t: string => string, handleTypeChange: string => void, type: string, + label?: string, + helpText?: string, loading?: boolean }; class TypeSelector extends React.Component { render() { - const { t, type, handleTypeChange, loading } = this.props; + const { t, type, handleTypeChange, loading, label, helpText } = this.props; const types = ["READ", "OWNER", "WRITE"]; return ( @@ -21,8 +23,8 @@ class TypeSelector extends React.Component { value={type ? type : "READ"} options={this.createSelectOptions(types)} loading={loading} - label={t("permission.type")} - helpText={t("permission.help.typeHelpText")} + label={label} + helpText={helpText} /> ); }