1
0
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:
llj
2025-05-12 16:54:52 +08:00
committed by GitHub
parent feccf82d97
commit 00119b4e6b
18 changed files with 445 additions and 54 deletions

View File

@@ -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}