From 97895efee6496e879ece98867aa3a6c01e9035ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 26 Mar 2024 12:57:26 +0100 Subject: [PATCH] fix: Close button should just exit for the edit local modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/mixins/openLocal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mixins/openLocal.js b/src/mixins/openLocal.js index 4e4165a84b..7e6bab5130 100644 --- a/src/mixins/openLocal.js +++ b/src/mixins/openLocal.js @@ -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