Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob <jakob.roehrl@web.de>2019-12-04 13:50:33 +0300
committerJakob <jakob.roehrl@web.de>2019-12-04 13:50:33 +0300
commit74120cc0e33eff540104a7912d05d896ab430bcd (patch)
tree27c925d1bfe34c859162f95939d618b496a74dcb /src
parent10778fd6bef59381cf6d224f0ef77bf29302d930 (diff)
UI
Signed-off-by: Jakob <jakob.roehrl@web.de>
Diffstat (limited to 'src')
-rw-r--r--src/Photos.vue17
-rw-r--r--src/services/isMapsInstalled.js (renamed from src/services/MapsInstalled.js)2
2 files changed, 13 insertions, 6 deletions
diff --git a/src/Photos.vue b/src/Photos.vue
index 8e1e0dd8..07157786 100644
--- a/src/Photos.vue
+++ b/src/Photos.vue
@@ -22,7 +22,6 @@
<template>
<Content app-name="photos">
- {{MapsInstalled}}
<AppNavigation>
<AppNavigationItem :to="{name: 'root'}"
class="app-navigation__photos"
@@ -33,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="{name: 'maps'}" :title="t('photos', 'Locations')" icon="icon-address" />
+ <AppNavigationItem :to="mapsLink" :title="t('photos', 'Locations')" icon="icon-address" />
</AppNavigation>
<AppContent :class="{ 'icon-loading': loading }">
<router-view v-show="!loading" :loading.sync="loading" />
@@ -54,7 +53,7 @@ import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
import svgplaceholder from './assets/file-placeholder.svg'
import imgplaceholder from './assets/image.svg'
import videoplaceholder from './assets/video.svg'
-import MapsInstalled from './services/MapsInstalled'
+import isMapsInstalled from './services/isMapsInstalled'
export default {
name: 'Photos',
@@ -69,10 +68,18 @@ export default {
loading: true,
svgplaceholder,
imgplaceholder,
- videoplaceholder,
- MapsInstalled
+ videoplaceholder
}
},
+ computed: {
+ mapsLink() {
+ if (isMapsInstalled) {
+ return 'apps/maps'
+ } else {
+ return 'https://apps.nextcloud.com/apps/maps'
+ }
+ }
+ }
}
</script>
<style lang="scss" scoped>
diff --git a/src/services/MapsInstalled.js b/src/services/isMapsInstalled.js
index 2290e67f..1c841628 100644
--- a/src/services/MapsInstalled.js
+++ b/src/services/isMapsInstalled.js
@@ -22,5 +22,5 @@
import { loadState } from '@nextcloud/initial-state'
-const maps = loadState('maps')
+const maps = loadState('photos', 'maps')
export default maps