mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
update inactive user (#6019)
* update inactive user * is_active del RepoAPITokens * update del_repo_api_token * add inactive_user * [user admin] add confirmation to 'set user inactive' * system admin - users * system admin - organizations - org - member * org admin - users --------- Co-authored-by: llj <lingjun.li1@gmail.com>
This commit is contained in:
@@ -8,6 +8,7 @@ const propTypes = {
|
||||
currentSelectedOption: PropTypes.object.isRequired,
|
||||
options: PropTypes.array.isRequired,
|
||||
selectOption: PropTypes.func.isRequired,
|
||||
operationBeforeSelect: PropTypes.func,
|
||||
toggleItemFreezed: PropTypes.func
|
||||
};
|
||||
|
||||
@@ -52,7 +53,11 @@ class Selector extends Component {
|
||||
|
||||
selectItem = (e, targetItem) => {
|
||||
e.stopPropagation();
|
||||
this.props.selectOption(targetItem);
|
||||
if (this.props.operationBeforeSelect) {
|
||||
this.props.operationBeforeSelect();
|
||||
} else {
|
||||
this.props.selectOption(targetItem);
|
||||
}
|
||||
this.togglePopover();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user