diff options
author | Varun Patil <varunpatil@ucla.edu> | 2023-10-16 21:04:53 -0700 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-11-27 18:25:09 +0000 |
commit | c581024540b2d8fe0db49906f90ef14a54ec0fa1 (patch) | |
tree | ee914ef49dd3aedd8b34308fde213ff0aac6e980 /apps/files/src/sidebar.js | |
parent | 5d669abd11652d6b01a11c6691c2df013f2e1a2c (diff) | |
download | nextcloud-server-c581024540b2d8fe0db49906f90ef14a54ec0fa1.tar.gz nextcloud-server-c581024540b2d8fe0db49906f90ef14a54ec0fa1.zip |
sidebar: allow turning off tags view by default
With #37065, there is no way to hide the tags from the sidebar
by default when they are not relevant or redundant (e.g. the tab
may already show the file's tags). This can be annyoing especially
when the file has many tags. This patch adds an option to hide
the tags from the sidebar by default (the user can still open
the tags tab manually).
This also reduces one request when opening the sidebar when the
tags are turned off, since all tags don't need to be fetched
anymore.
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/src/sidebar.js')
-rw-r--r-- | apps/files/src/sidebar.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/src/sidebar.js b/apps/files/src/sidebar.js index c8bfc2ca4db..ceec5478466 100644 --- a/apps/files/src/sidebar.js +++ b/apps/files/src/sidebar.js @@ -59,4 +59,5 @@ window.addEventListener('DOMContentLoaded', function() { window.OCA.Files.Sidebar.open = AppSidebar.open window.OCA.Files.Sidebar.close = AppSidebar.close window.OCA.Files.Sidebar.setFullScreenMode = AppSidebar.setFullScreenMode + window.OCA.Files.Sidebar.setShowTagsDefault = AppSidebar.setShowTagsDefault }) |