From 74d7cf46c78f61bad1efce2d250c54774ddf4837 Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Tue, 11 Feb 2020 15:30:49 +0100 Subject: [PATCH] Extension specific navigation and automatically inject extensions into app switcher Added translation --- apps/files/src/default.js | 2 +- changelog/unreleased/2746 | 7 +++++ src/Phoenix.vue | 44 +++++++++++++++++++++++++---- src/components/ApplicationsMenu.vue | 22 ++++++++++----- src/components/Top-Bar.vue | 26 ++++++++++++++++- src/phoenix.js | 5 ++-- src/plugins/phoenix.js | 6 +++- 7 files changed, 93 insertions(+), 19 deletions(-) create mode 100644 changelog/unreleased/2746 diff --git a/apps/files/src/default.js b/apps/files/src/default.js index ecff6cd7487..1b60a33905b 100644 --- a/apps/files/src/default.js +++ b/apps/files/src/default.js @@ -76,7 +76,7 @@ const navItems = [ iconMaterial: appInfo.icon, route: { name: 'files-list', - path: '/' + path: `/${appInfo.id}/list` } }, { diff --git a/changelog/unreleased/2746 b/changelog/unreleased/2746 new file mode 100644 index 00000000000..18f20daff23 --- /dev/null +++ b/changelog/unreleased/2746 @@ -0,0 +1,7 @@ +Change: Display only items for current extension in sidebar menu + +We've filtered out nav items in the sidebar menu. Now only items for current extension will be displayed. +In case the extension has only one nav item, the sidebar menu is hidden and instead of menu button is displayed the name of extension. + +https://github.com/owncloud/phoenix/issues/2746 +https://github.com/owncloud/phoenix/pull/3013 diff --git a/src/Phoenix.vue b/src/Phoenix.vue index 10d3652f7b0..8bdc6f5208c 100644 --- a/src/Phoenix.vue +++ b/src/Phoenix.vue @@ -7,8 +7,20 @@