Rename favorite places to states
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
99c0b49a76
commit
220bd4cbbf
3 changed files with 4 additions and 4 deletions
|
@ -227,7 +227,7 @@
|
||||||
<v-list-tile :to="{ name: 'states' }" @click="" class="p-navigation-states">
|
<v-list-tile :to="{ name: 'states' }" @click="" class="p-navigation-states">
|
||||||
<v-list-tile-content>
|
<v-list-tile-content>
|
||||||
<v-list-tile-title>
|
<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>
|
<span v-show="config.count.states > 0" class="p-navigation-count">{{ config.count.states }}</span>
|
||||||
</v-list-tile-title>
|
</v-list-tile-title>
|
||||||
</v-list-tile-content>
|
</v-list-tile-content>
|
||||||
|
|
|
@ -132,14 +132,14 @@ export default [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "states",
|
name: "states",
|
||||||
path: "/places/favorites",
|
path: "/places/states",
|
||||||
component: Albums,
|
component: Albums,
|
||||||
meta: {title: "Places", auth: true},
|
meta: {title: "Places", auth: true},
|
||||||
props: {view: "state", staticFilter: {type: "state"}},
|
props: {view: "state", staticFilter: {type: "state"}},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "state",
|
name: "state",
|
||||||
path: "/places/favorites/:uid/:slug",
|
path: "/places/states/:uid/:slug",
|
||||||
component: AlbumPhotos,
|
component: AlbumPhotos,
|
||||||
meta: {title: "Places", auth: true},
|
meta: {title: "Places", auth: true},
|
||||||
},
|
},
|
||||||
|
|
|
@ -151,7 +151,7 @@ func (m *Moments) Start() (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// States and countries.
|
// 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())
|
log.Errorf("moments: %s", err.Error())
|
||||||
} else {
|
} else {
|
||||||
for _, mom := range results {
|
for _, mom := range results {
|
||||||
|
|
Loading…
Reference in a new issue