1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

fix: details rename (#7232)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-12-21 18:22:08 +08:00
committed by GitHub
parent a50b5d8f5a
commit 9fb6870679
7 changed files with 46 additions and 16 deletions

View File

@@ -2202,6 +2202,11 @@ class LibContentView extends React.Component {
}
}
let currentDirent = this.state.currentDirent;
if (currentDirent instanceof Dirent) {
currentDirent = currentDirent.toJson();
}
return (
<MetadataStatusProvider repoID={repoID} currentRepoInfo={currentRepoInfo} hideMetadataView={this.hideMetadataView}>
<TagsProvider repoID={repoID} currentPath={path} repoInfo={currentRepoInfo} selectTagsView={this.onTreeNodeClick}>
@@ -2382,8 +2387,8 @@ class LibContentView extends React.Component {
<Detail
path={this.state.path}
repoID={this.props.repoID}
currentRepoInfo={this.state.currentRepoInfo}
dirent={this.state.currentDirent}
currentRepoInfo={{ ...this.state.currentRepoInfo }}
dirent={currentDirent}
repoTags={this.state.repoTags}
fileTags={this.state.isViewFile ? this.state.fileTags : []}
onFileTagChanged={this.onFileTagChanged}