diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-11 01:44:00 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-08-02 14:10:35 +0200 |
commit | 3f34ef91154813cd703c65238007380a0dd9260a (patch) | |
tree | 3d99256e5edc96325cf1de65e92ec4aa6585f814 /apps/files_sharing | |
parent | 1ea1f4ffee79ff67fccc30b8a3bddb269fb3b2d2 (diff) | |
download | nextcloud-server-3f34ef91154813cd703c65238007380a0dd9260a.tar.gz nextcloud-server-3f34ef91154813cd703c65238007380a0dd9260a.zip |
fix(files): Close the sidebar on navigation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/src/files_sharing_tab.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_sharing/src/files_sharing_tab.js b/apps/files_sharing/src/files_sharing_tab.js index 602992320d1..09bedbc6398 100644 --- a/apps/files_sharing/src/files_sharing_tab.js +++ b/apps/files_sharing/src/files_sharing_tab.js @@ -73,12 +73,16 @@ window.addEventListener('DOMContentLoaded', function() { await TabInstance.update(fileInfo) TabInstance.$mount(el) }, + update(fileInfo) { TabInstance.update(fileInfo) }, + destroy() { - TabInstance.$destroy() - TabInstance = null + if (TabInstance) { + TabInstance.$destroy() + TabInstance = null + } }, })) } |