diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-11 01:44:00 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-08-02 10:21:05 +0200 |
commit | c27de43886c442f631f18f1bcd568cf57d78bec9 (patch) | |
tree | d0e0148c5b0fb39a40f5639facf43783f984abbf /apps/files_sharing | |
parent | bf526d8f95d6c7d8152c4e1126660024c8bf240a (diff) | |
download | nextcloud-server-c27de43886c442f631f18f1bcd568cf57d78bec9.tar.gz nextcloud-server-c27de43886c442f631f18f1bcd568cf57d78bec9.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 + } }, })) } |