Skip to content

Commit

Permalink
[Bug]: Fix empty window remains after upload failure or on cancel (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored Oct 8, 2024
1 parent 0fda721 commit db75bc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/js/pimcore/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,6 @@ pimcore.helpers.uploadDialog = function (url, filename, success, failure, descri
autoHeight: true,
autoScroll: true
});
win.show();

const finishedErrorHandler = function (pbar) {
activeUploads--;
Expand All @@ -1101,6 +1100,10 @@ pimcore.helpers.uploadDialog = function (url, filename, success, failure, descri
style: "margin-bottom: 5px"
});

if (!win.isVisible()){
win.show();
}

win.add(pbar);
win.updateLayout();

Expand Down

0 comments on commit db75bc2

Please sign in to comment.