Skip to content

Commit

Permalink
drop debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus committed Dec 3, 2024
1 parent fb47459 commit be2b62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/files-folder-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export const FilesFolderView = ({

// disable drag & drop when upload is in progress
if (!isUploading && dropzoneElem !== null) {
console.log("dragenter", event);
if (dragDropCnt === 0) {
setDragDropActive(true);
}
Expand All @@ -108,7 +107,6 @@ export const FilesFolderView = ({
event.preventDefault();
event.stopPropagation();

console.log("dragleave", event);
dragDropCnt--;
if (dragDropCnt === 0) {
setDragDropActive(false);
Expand Down Expand Up @@ -193,7 +191,7 @@ export const FilesFolderView = ({
<div className="drag-drop-upload">
<EmptyStatePanel
icon={UploadIcon}
title={_("Drop file to upload")}
title={_("Drop files to upload")}
/>
</div>}
</Card>
Expand Down
1 change: 1 addition & 0 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,7 @@ class TestFiles(testlib.MachineCase):
# Upload same file again - warning should show up
drag_file_event(".fileview-wrapper", 'dragenter')
b.wait_visible(".drag-drop-upload")
drag_file_event(".fileview-wrapper", 'dragover')
drag_file_event(".fileview-wrapper", 'drop', 'drag-drop-testfile.txt')
b.wait_in_text("h1.pf-v5-c-modal-box__title", "Replace file drag-drop-testfile.txt?")
b.click(".pf-v5-c-modal-box button.pf-m-link")
Expand Down

0 comments on commit be2b62d

Please sign in to comment.