Skip to content

Commit

Permalink
fix: Close button should just exit for the edit local modal
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Mar 26, 2024
1 parent 3b8bbb5 commit 97895ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mixins/openLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export default {
cancel: t('richdocuments', 'Continue editing online'),
},
(decision) => {
if (window.event?.target.classList.contains('oc-dialog-close')) {
return
}

if (!decision) {
window.OCA.Viewer.open({ path: fileName })
return
Expand Down

0 comments on commit 97895ef

Please sign in to comment.