1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

show overlapped images in details, support modify details in batch (#8143)

* show overlapped images in details, support modify details in batch

* optimize

* fix details state

* code-optimize

* Update apis.py

---------

Co-authored-by: zhouwenxuan <aries@Mac.local>
Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
Aries
2025-08-20 17:58:50 +08:00
committed by GitHub
parent c4d4d4369e
commit f0d3587fd9
9 changed files with 659 additions and 16 deletions

View File

@@ -1838,7 +1838,7 @@ class LibContentView extends React.Component {
return item.name !== name;
});
this.recalculateSelectedDirents([name], direntList);
this.setState({ direntList: direntList });
this.setState({ direntList: direntList, currentDirent: null });
};
// only one scene: The moved items are inside current path
@@ -1852,6 +1852,7 @@ class LibContentView extends React.Component {
selectedDirentList: [],
isDirentSelected: false,
isAllDirentSelected: false,
currentDirent: null,
});
};
@@ -2378,7 +2379,7 @@ class LibContentView extends React.Component {
}
let detailPath = this.state.path;
if (!currentDirent && currentMode !== METADATA_MODE && currentMode !== TAGS_MODE) {
if (!currentDirent && currentMode !== METADATA_MODE && currentMode !== TAGS_MODE && this.state.selectedDirentList.length === 0) {
detailPath = Utils.getDirName(this.state.path);
}
@@ -2577,6 +2578,7 @@ class LibContentView extends React.Component {
repoID={this.props.repoID}
currentRepoInfo={{ ...this.state.currentRepoInfo }}
dirent={detailDirent}
selectedDirents={this.state.selectedDirentList}
repoTags={this.state.repoTags}
fileTags={this.state.isViewFile ? this.state.fileTags : []}
onFileTagChanged={this.onFileTagChanged}