forked from potsda.mn/mobilizon
Hide other menu items when not logged in
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
c6e0a198bb
commit
159346d5b5
|
@ -17,16 +17,32 @@
|
||||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }">{{
|
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }">{{
|
||||||
$t("Explore")
|
$t("Explore")
|
||||||
}}</b-navbar-item>
|
}}</b-navbar-item>
|
||||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.MY_EVENTS }">{{
|
<b-navbar-item
|
||||||
$t("My events")
|
v-if="currentActor.id && currentUser.isLoggedIn"
|
||||||
}}</b-navbar-item>
|
tag="router-link"
|
||||||
|
:to="{ name: RouteName.MY_EVENTS }"
|
||||||
|
>{{ $t("My events") }}</b-navbar-item
|
||||||
|
>
|
||||||
<b-navbar-item
|
<b-navbar-item
|
||||||
tag="router-link"
|
tag="router-link"
|
||||||
:to="{ name: RouteName.MY_GROUPS }"
|
:to="{ name: RouteName.MY_GROUPS }"
|
||||||
v-if="config && config.features.groups"
|
v-if="
|
||||||
|
config &&
|
||||||
|
config.features.groups &&
|
||||||
|
currentActor.id &&
|
||||||
|
currentUser.isLoggedIn
|
||||||
|
"
|
||||||
>{{ $t("My groups") }}</b-navbar-item
|
>{{ $t("My groups") }}</b-navbar-item
|
||||||
>
|
>
|
||||||
<b-navbar-item tag="span" v-if="config && config.features.eventCreation">
|
<b-navbar-item
|
||||||
|
tag="span"
|
||||||
|
v-if="
|
||||||
|
config &&
|
||||||
|
config.features.eventCreation &&
|
||||||
|
currentActor.id &&
|
||||||
|
currentUser.isLoggedIn
|
||||||
|
"
|
||||||
|
>
|
||||||
<b-button
|
<b-button
|
||||||
tag="router-link"
|
tag="router-link"
|
||||||
:to="{ name: RouteName.CREATE_EVENT }"
|
:to="{ name: RouteName.CREATE_EVENT }"
|
||||||
|
|
Loading…
Reference in a new issue