Skip to content

Commit 907f072

Browse files
committed
Add location grouping views
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent c8c7bfb commit 907f072

File tree

4 files changed

+574
-1
lines changed

4 files changed

+574
-1
lines changed

src/Photos.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@
6464
:title="t('photos', 'Tags')">
6565
<Tag slot="icon" :size="20" />
6666
</NcAppNavigationItem>
67+
<NcAppNavigationItem :to="{name: 'locations'}" :title="t('photos', 'Locations')">
68+
<MapMarker slot="icon" :size="20" />
69+
</NcAppNavigationItem>
6770
<NcAppNavigationItem v-if="showLocationMenuEntry"
6871
:to="{name: 'maps'}"
69-
:title="t('photos', 'Locations')">
72+
:title="t('photos', 'Maps')">
7073
<MapMarker slot="icon" :size="20" />
7174
</NcAppNavigationItem>
7275
</template>

src/router/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const AlbumContent = () => import('../views/AlbumContent')
3636
const SharedAlbums = () => import('../views/SharedAlbums')
3737
const SharedAlbumContent = () => import('../views/SharedAlbumContent')
3838
const PublicAlbumContent = () => import('../views/PublicAlbumContent')
39+
const Locations = () => import('../views/Locations')
40+
const LocationContent = () => import('../views/LocationContent')
3941
const Tags = () => import('../views/Tags')
4042
const TagContent = () => import('../views/TagContent')
4143
const Timeline = () => import('../views/Timeline')
@@ -127,6 +129,19 @@ const router = new Router({
127129
token: route.params.token,
128130
}),
129131
},
132+
{
133+
path: '/locations',
134+
component: Locations,
135+
name: 'locations',
136+
},
137+
{
138+
path: '/locations/:locationName*',
139+
component: LocationContent,
140+
name: 'locations',
141+
props: route => ({
142+
locationName: route.params.locationName,
143+
}),
144+
},
130145
{
131146
path: '/folders/:path*',
132147
component: Folders,

0 commit comments

Comments
 (0)