aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-11 01:44:00 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-08-02 14:10:35 +0200
commit3f34ef91154813cd703c65238007380a0dd9260a (patch)
tree3d99256e5edc96325cf1de65e92ec4aa6585f814 /apps/files_sharing
parent1ea1f4ffee79ff67fccc30b8a3bddb269fb3b2d2 (diff)
downloadnextcloud-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.js8
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
+ }
},
}))
}