From 4e7808eb614c27779c44be17d7e7d7da38bb057c Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Fri, 10 Jan 2020 11:28:58 +0100 Subject: [PATCH] Enable internal links in app switcher --- src/components/ApplicationsMenu.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/components/ApplicationsMenu.vue b/src/components/ApplicationsMenu.vue index 15e6b2a7632..b9f34068860 100644 --- a/src/components/ApplicationsMenu.vue +++ b/src/components/ApplicationsMenu.vue @@ -4,11 +4,16 @@
@@ -59,12 +64,22 @@ export default { } else { iconUrl = item.icon } - return { + + const app = { iconMaterial: iconMaterial, iconUrl: iconUrl, - title: title, - url: item.url + title: title + } + + if (item.url) { + app.url = item.url + } + + if (item.path) { + app.path = item.path } + + return app }) } },