mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
fix create group repo style (#7505)
This commit is contained in:
@@ -117,8 +117,7 @@ class CreateRepoDialog extends React.Component {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
onPermissionChange = (e) => {
|
onPermissionChange = (permission) => {
|
||||||
let permission = e.target.value;
|
|
||||||
this.setState({ permission: permission });
|
this.setState({ permission: permission });
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -223,11 +222,19 @@ class CreateRepoDialog extends React.Component {
|
|||||||
|
|
||||||
{this.props.libraryType === 'group' && (
|
{this.props.libraryType === 'group' && (
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<Label for="exampleSelect">{gettext('Permission')}</Label>
|
<Label>{gettext('Permission')}</Label>
|
||||||
<Input type="select" name="select" id="exampleSelect" onChange={this.onPermissionChange} value={this.state.permission}>
|
<SeahubSelect
|
||||||
<option value='rw'>{gettext('Read-Write')}</option>
|
options={[
|
||||||
<option value='r'>{gettext('Read-Only')}</option>
|
{ value: 'rw', label: gettext('Read-Write') },
|
||||||
</Input>
|
{ value: 'r', label: gettext('Read-Only') }
|
||||||
|
]}
|
||||||
|
onChange={selectedOption => this.onPermissionChange(selectedOption.value)}
|
||||||
|
value={{
|
||||||
|
value: this.state.permission,
|
||||||
|
label: this.state.permission === 'rw' ? gettext('Read-Write') : gettext('Read-Only')
|
||||||
|
}}
|
||||||
|
isClearable={false}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
)}
|
)}
|
||||||
{enableEncryptedLibrary &&
|
{enableEncryptedLibrary &&
|
||||||
|
Reference in New Issue
Block a user