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

feat: side properties (#6485)

* feat: side properties

* feat: show metadata

* feat: delete record expand

* feat: optimzie code

* fix: bug

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-06 17:30:11 +08:00
committed by GitHub
parent 1c169b5329
commit b043cb8491
63 changed files with 408 additions and 2490 deletions

View File

@@ -416,7 +416,7 @@ class LibContentView extends React.Component {
let repoID = this.props.repoID;
if (!this.state.isSessionExpired) {
// update stste
// update state
this.setState({
isDirentListLoading: true,
isViewFile: false,
@@ -494,7 +494,7 @@ class LibContentView extends React.Component {
showFileMetadata = (filePath, viewId) => {
const repoID = this.props.repoID;
this.setState({ path: filePath, isViewFile: true, isFileLoading: false, isFileLoadedErr: false, content: '__sf-metadata', metadataViewId: viewId });
this.setState({ path: filePath, isViewFile: true, isFileLoading: false, isFileLoadedErr: false, content: '__sf-metadata', metadataViewId: viewId, isDirentDetailShow: false });
const repoInfo = this.state.currentRepoInfo;
const url = siteRoot + 'library/' + repoID + '/' + encodeURIComponent(repoInfo.repo_name);
window.history.pushState({ url: url, path: '' }, '', url);