Skip to content

Commit

Permalink
[organization] In drag and drop mode the pages are deleted and the re…
Browse files Browse the repository at this point in the history
…st is
  • Loading branch information
wincelau committed Oct 4, 2024
1 parent 7c62cd5 commit f2c7619
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ function updatePageState(page) {
page.querySelector('.btn-drag').classList.remove('d-none');
}

if(isPageHover(page) && isPageDeleted(page)) {
if(isPageHover(page) && isPageDeleted(page) && !isDraggedMode()) {
page.querySelector('.btn-restore').classList.remove('d-none');
}

if(is_mobile() && isPageDeleted(page)) {
if(is_mobile() && isPageDeleted(page) && !isDraggedMode()) {
page.querySelector('.btn-restore').classList.remove('d-none');
}

Expand All @@ -456,7 +456,7 @@ function updatePageState(page) {
page.querySelector('.canvas-pdf').classList.add('shadow');
}

if(!isPageDragged(page) && isDraggedMode()) {
if(!isPageDragged(page) && !isPageDeleted(page) && isDraggedMode()) {
page.querySelector('.canvas-pdf').classList.add('opacity-50');
page.querySelector('.btn-drag-here').classList.remove('d-none');
}
Expand Down

0 comments on commit f2c7619

Please sign in to comment.