diff --git a/config.json.sample b/config.json.sample index 5efa5aaf517..4e858b3dba8 100644 --- a/config.json.sample +++ b/config.json.sample @@ -8,14 +8,23 @@ "authUrl": "https://demo.owncloud.com/index.php/apps/oauth2/authorize" }, "apps" : ["files"], - "applications": [{ - "title": { - "en": "Files", - "de": "Dateien", - "fr": "Fichiers", - "zh_CN": "文件" + "applications": [ + { + "title": { + "en": "Files", + "de": "Dateien", + "fr": "Fichiers", + "zh_CN": "文件" + }, + "icon": "folder", + "url": "http://demo.owncloud.com/index.html#/files/list" }, - "icon": "folder", - "url": "http://demo.owncloud.com/index.html#/files/list" - }] + { + "title": { + "en": ""App living inside of Phoenix core SPA" + }, + "icon": "info", + "path": "/internal-app" + } + ] } 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 }) } },