diff options
author | Jakob <jakob.roehrl@web.de> | 2019-12-04 13:39:52 +0100 |
---|---|---|
committer | Jakob <jakob.roehrl@web.de> | 2019-12-04 13:39:52 +0100 |
commit | 903091675cb3e6ba7c4779650fcf82413c8167f5 (patch) | |
tree | 991000e15ee5d84e084615b47ce406494754a643 /src | |
parent | 74120cc0e33eff540104a7912d05d896ab430bcd (diff) |
routing
Signed-off-by: Jakob <jakob.roehrl@web.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/Photos.vue | 12 | ||||
-rw-r--r-- | src/router/index.js | 9 |
2 files changed, 13 insertions, 8 deletions
diff --git a/src/Photos.vue b/src/Photos.vue index 07157786..e5376bbb 100644 --- a/src/Photos.vue +++ b/src/Photos.vue @@ -32,7 +32,7 @@ <AppNavigationItem :to="{name: 'albums'}" :title="t('photos', 'Your albums')" icon="icon-files-dark" /> <AppNavigationItem :to="{name: 'shared'}" :title="t('photos', 'Shared albums')" icon="icon-share" /> <AppNavigationItem :to="{name: 'tags'}" :title="t('photos', 'Tagged photos')" icon="icon-tag" /> - <AppNavigationItem :to="mapsLink" :title="t('photos', 'Locations')" icon="icon-address" /> + <AppNavigationItem :to="mapsLink" :title="t('photos', 'Locations')" icon="icon-address" target="_blank" /> </AppNavigation> <AppContent :class="{ 'icon-loading': loading }"> <router-view v-show="!loading" :loading.sync="loading" /> @@ -68,18 +68,18 @@ export default { loading: true, svgplaceholder, imgplaceholder, - videoplaceholder + videoplaceholder, } }, computed: { mapsLink() { if (isMapsInstalled) { - return 'apps/maps' + return {name: 'MapsInstalled'} } else { - return 'https://apps.nextcloud.com/apps/maps' + return {name: 'MapsNotInstalled'} } - } - } + }, + }, } </script> <style lang="scss" scoped> diff --git a/src/router/index.js b/src/router/index.js index a5372a59..69d09608 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -84,8 +84,13 @@ export default new Router({ }), }, { - path: '/maps', - name: 'maps', + path: generateUrl('apps/maps', ''), + name: 'MapsInstalled', + redirect: '', + }, + { + path: generateUrl('settings/apps/integration/maps', ''), + name: 'MapsNotInstalled', redirect: '', }, ], |