From 220bd4cbbf5ac83c83ebf883e059c3172450e107 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 8 Jun 2020 20:02:21 +0200 Subject: [PATCH] Rename favorite places to states Signed-off-by: Michael Mayer --- frontend/src/component/p-navigation.vue | 2 +- frontend/src/routes.js | 4 ++-- internal/photoprism/moments.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/p-navigation.vue b/frontend/src/component/p-navigation.vue index c5d26b85d..eb89b3a4d 100644 --- a/frontend/src/component/p-navigation.vue +++ b/frontend/src/component/p-navigation.vue @@ -227,7 +227,7 @@ - Favorites + States {{ config.count.states }} diff --git a/frontend/src/routes.js b/frontend/src/routes.js index 82ce3fa81..2ea309132 100644 --- a/frontend/src/routes.js +++ b/frontend/src/routes.js @@ -132,14 +132,14 @@ export default [ }, { name: "states", - path: "/places/favorites", + path: "/places/states", component: Albums, meta: {title: "Places", auth: true}, props: {view: "state", staticFilter: {type: "state"}}, }, { name: "state", - path: "/places/favorites/:uid/:slug", + path: "/places/states/:uid/:slug", component: AlbumPhotos, meta: {title: "Places", auth: true}, }, diff --git a/internal/photoprism/moments.go b/internal/photoprism/moments.go index 671b6c2ba..0f9140be7 100644 --- a/internal/photoprism/moments.go +++ b/internal/photoprism/moments.go @@ -151,7 +151,7 @@ func (m *Moments) Start() (err error) { } // States and countries. - if results, err := query.MomentsStates(threshold); err != nil { + if results, err := query.MomentsStates(1); err != nil { log.Errorf("moments: %s", err.Error()) } else { for _, mom := range results {