Skip to content

Commit

Permalink
Add location grouping views
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Oct 26, 2022
1 parent 351a796 commit e7c44ab
Show file tree
Hide file tree
Showing 4 changed files with 574 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Photos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@
:title="t('photos', 'Tags')">
<Tag slot="icon" :size="20" />
</NcAppNavigationItem>
<NcAppNavigationItem :to="{name: 'locations'}" :title="t('photos', 'Locations')">
<MapMarker slot="icon" :size="20" />
</NcAppNavigationItem>
<NcAppNavigationItem v-if="showLocationMenuEntry"
:to="{name: 'maps'}"
:title="t('photos', 'Locations')">
:title="t('photos', 'Maps')">
<MapMarker slot="icon" :size="20" />
</NcAppNavigationItem>
</template>
Expand Down
15 changes: 15 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const AlbumContent = () => import('../views/AlbumContent')
const SharedAlbums = () => import('../views/SharedAlbums')
const SharedAlbumContent = () => import('../views/SharedAlbumContent')
const PublicAlbumContent = () => import('../views/PublicAlbumContent')
const Locations = () => import('../views/Locations')
const LocationContent = () => import('../views/LocationContent')
const Tags = () => import('../views/Tags')
const TagContent = () => import('../views/TagContent')
const Timeline = () => import('../views/Timeline')
Expand Down Expand Up @@ -127,6 +129,19 @@ const router = new Router({
token: route.params.token,
}),
},
{
path: '/locations',
component: Locations,
name: 'locations',
},
{
path: '/locations/:locationName*',
component: LocationContent,
name: 'locations',
props: route => ({
locationName: route.params.locationName,
}),
},
{
path: '/folders/:path*',
component: Folders,
Expand Down
Loading

0 comments on commit e7c44ab

Please sign in to comment.