diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-01-04 11:47:36 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-01-04 16:46:16 +0100 |
commit | 7339355dde6e946bbc151397ea91ba5bf19047f6 (patch) | |
tree | 742e97042d74d7f28b08979e2df839516d46fd39 /apps/files/src/legacy | |
parent | e2da30a0c5315273936232e3ad28ca0c8653ed33 (diff) | |
download | nextcloud-server-7339355dde6e946bbc151397ea91ba5bf19047f6.tar.gz nextcloud-server-7339355dde6e946bbc151397ea91ba5bf19047f6.zip |
Fix favourite opening
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/legacy')
-rw-r--r-- | apps/files/src/legacy/navigationMapper.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/src/legacy/navigationMapper.js b/apps/files/src/legacy/navigationMapper.js index a78faf0af52..764a7cb6cd9 100644 --- a/apps/files/src/legacy/navigationMapper.js +++ b/apps/files/src/legacy/navigationMapper.js @@ -40,15 +40,16 @@ export default function() { } } -const registerLegacyView = function({ id, name, order, icon, parent, classes = '', expanded }) { +const registerLegacyView = function({ id, name, order, icon, parent, classes = '', expanded, params }) { OCP.Files.Navigation.register({ id, name, - iconClass: icon ? `icon-${icon}` : 'nav-icon-' + id, order, + params, parent, + expanded: expanded === true, + iconClass: icon ? `icon-${icon}` : 'nav-icon-' + id, legacy: true, sticky: classes.includes('pinned'), - expanded: expanded === true, }) } |