mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 07:44:50 +00:00
Library view more menu (#7806)
* [library view] added the 'More' menu('more' operations for the current library) * add monitored field when get repo info --------- Co-authored-by: lian <imwhatiam123@gmail.com>
This commit is contained in:
@@ -2274,6 +2274,12 @@ class LibContentView extends React.Component {
|
||||
this.props.eventBus.dispatch(EVENT_BUS_TYPE.TAGS_CHANGED, tags);
|
||||
};
|
||||
|
||||
updateRepoInfo = (updatedData) => {
|
||||
this.setState({
|
||||
currentRepoInfo: { ...this.state.currentRepoInfo, ...updatedData }
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
const { repoID } = this.props;
|
||||
let { currentRepoInfo, userPerm, isCopyMoveProgressDialogShow, isDeleteFolderDialogOpen, errorMsg,
|
||||
@@ -2464,6 +2470,7 @@ class LibContentView extends React.Component {
|
||||
path={this.state.path}
|
||||
repoID={this.props.repoID}
|
||||
currentRepoInfo={this.state.currentRepoInfo}
|
||||
updateRepoInfo={this.updateRepoInfo}
|
||||
isGroupOwnedRepo={this.state.isGroupOwnedRepo}
|
||||
userPerm={userPerm}
|
||||
enableDirPrivateShare={enableDirPrivateShare}
|
||||
|
Reference in New Issue
Block a user