mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
[library 'Folder Permission' dialog] fixup: enable users to 'choose' the root folder; removed those unused prop type checking which caused errors (#6130)
This commit is contained in:
@@ -77,11 +77,8 @@ class GroupItem extends React.Component {
|
|||||||
GroupItem.propTypes = {
|
GroupItem.propTypes = {
|
||||||
item: PropTypes.object.isRequired,
|
item: PropTypes.object.isRequired,
|
||||||
permissions: PropTypes.array.isRequired,
|
permissions: PropTypes.array.isRequired,
|
||||||
deleteUserFolderPermission: PropTypes.func.isRequired,
|
|
||||||
onChangeUserFolderPerm: PropTypes.func.isRequired,
|
|
||||||
showPath: PropTypes.bool.isRequired,
|
showPath: PropTypes.bool.isRequired,
|
||||||
repoName: PropTypes.string.isRequired,
|
repoName: PropTypes.string.isRequired,
|
||||||
handleChange: PropTypes.func.isRequired,
|
|
||||||
deleteGroupPermissionItem: PropTypes.func.isRequired,
|
deleteGroupPermissionItem: PropTypes.func.isRequired,
|
||||||
onChangeGroupPermission: PropTypes.func.isRequired,
|
onChangeGroupPermission: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
@@ -247,6 +244,7 @@ class LibSubFolderSetGroupPermissionDialog extends React.Component {
|
|||||||
|
|
||||||
handleSubmit = () => {
|
handleSubmit = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
folderPath: this.state.folderPath || '/',
|
||||||
showFileChooser: !this.state.showFileChooser
|
showFileChooser: !this.state.showFileChooser
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@@ -82,14 +82,13 @@ UserItem.propTypes = {
|
|||||||
onChangeUserFolderPerm: PropTypes.func.isRequired,
|
onChangeUserFolderPerm: PropTypes.func.isRequired,
|
||||||
showPath: PropTypes.bool.isRequired,
|
showPath: PropTypes.bool.isRequired,
|
||||||
repoName: PropTypes.string.isRequired,
|
repoName: PropTypes.string.isRequired,
|
||||||
handleChange: PropTypes.func.isRequired,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
repoID: PropTypes.string.isRequired,
|
repoID: PropTypes.string.isRequired,
|
||||||
isDepartmentRepo: PropTypes.bool,
|
isDepartmentRepo: PropTypes.bool,
|
||||||
folderPath: PropTypes.string.isRequired,
|
folderPath: PropTypes.string,
|
||||||
repoName: PropTypes.string,
|
repoName: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -226,6 +225,7 @@ class LibSubFolderSetUserPermissionDialog extends React.Component {
|
|||||||
|
|
||||||
handleFileChooserSubmit = () => {
|
handleFileChooserSubmit = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
folderPath: this.state.folderPath || '/',
|
||||||
showFileChooser: !this.state.showFileChooser
|
showFileChooser: !this.state.showFileChooser
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user