1
0
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:
欢乐马
2024-04-23 16:26:31 +08:00
committed by GitHub
parent aa40b202d1
commit cd7329e711
8 changed files with 171 additions and 48 deletions

View File

@@ -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();
};