Rename favorite places to states

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-08 20:02:21 +02:00
parent 99c0b49a76
commit 220bd4cbbf
3 changed files with 4 additions and 4 deletions

View file

@ -227,7 +227,7 @@
<v-list-tile :to="{ name: 'states' }" @click="" class="p-navigation-states">
<v-list-tile-content>
<v-list-tile-title>
<translate key="Favorites">Favorites</translate>
<translate key="States">States</translate>
<span v-show="config.count.states > 0" class="p-navigation-count">{{ config.count.states }}</span>
</v-list-tile-title>
</v-list-tile-content>

View file

@ -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},
},

View file

@ -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 {