mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 07:27:56 +00:00
fix sys-admin transfer group (#7326)
This commit is contained in:
parent
50b6acbcfb
commit
4b33271e5b
@ -17,22 +17,24 @@ class SysAdminTransferGroupDialog extends React.Component {
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
selectedOption: null,
|
selectedOptions: null,
|
||||||
submitBtnDisabled: true
|
submitBtnDisabled: true
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSelectChange = (option) => {
|
handleSelectChange = (options) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
selectedOption: option,
|
selectedOptions: options,
|
||||||
submitBtnDisabled: option == null
|
submitBtnDisabled: options == null
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
submit = () => {
|
submit = () => {
|
||||||
const receiver = this.state.selectedOption.email;
|
if (this.state.selectedOptions) {
|
||||||
|
const receiver = this.state.selectedOptions[0].email;
|
||||||
this.props.transferGroup(receiver);
|
this.props.transferGroup(receiver);
|
||||||
this.props.toggleDialog();
|
this.props.toggleDialog();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user