1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

update image dialog, add download, delete and view original image button (#6670)

* update image dialog, add download, delete and view original image button

* update react-image-lightbox

* add-image-rotate-api

* support restore in image previewer

* support image rotate

* upgrade react-image-lightbox

* fix bug - first image auto previewed in list layout, improve delete and restore action

* remove raise

* fix last line

---------

Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
Aries
2024-09-03 10:31:42 +08:00
committed by GitHub
parent 670ee89f24
commit 89b4e92fa6
17 changed files with 384 additions and 17 deletions

View File

@@ -914,6 +914,9 @@ class LibContentView extends React.Component {
}
if (parentPath === this.state.path && !this.state.isViewFile) {
this.addDirent(name, 'file');
if (Utils.imageCheck(name)) {
this.props.eventBus.dispatch(EVENT_BUS_TYPE.RESTORE_IMAGE);
}
}
} else {
if (this.state.isTreePanelShown) {
@@ -2293,6 +2296,7 @@ class LibContentView extends React.Component {
showShareBtn={showShareBtn}
onUploadFile={this.onUploadFile}
onUploadFolder={this.onUploadFolder}
eventBus={this.props.eventBus}
/>
{canUpload && this.state.pathExist && !this.state.isViewFile && (
<FileUploader