Fixed login link in sidebar.
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
|
||||
<div class="sidebar-section controls noselect">
|
||||
<label
|
||||
v-if="auth && me"
|
||||
v-if="login && me"
|
||||
@click="$emit('toggleSidebar', false)"
|
||||
>
|
||||
<router-link
|
||||
@@ -142,7 +142,7 @@
|
||||
|
||||
<div class="toggles noselect">
|
||||
<label
|
||||
v-if="auth && !me"
|
||||
v-if="login && !me"
|
||||
@click="$emit('toggleSidebar', false)"
|
||||
>
|
||||
<router-link
|
||||
@@ -152,7 +152,7 @@
|
||||
</label>
|
||||
|
||||
<label
|
||||
v-if="auth && me"
|
||||
v-if="login && me"
|
||||
class="toggle"
|
||||
@click.stop="$store.dispatch('logout')"
|
||||
><Icon icon="exit2" />Log out</label>
|
||||
@@ -206,8 +206,12 @@ function theme(state) {
|
||||
return state.ui.theme;
|
||||
}
|
||||
|
||||
function auth(state) {
|
||||
return state.auth.enabled;
|
||||
function login(state) {
|
||||
return state.auth.login;
|
||||
}
|
||||
|
||||
function signup(state) {
|
||||
return state.auth.signup;
|
||||
}
|
||||
|
||||
function me(state) {
|
||||
@@ -234,7 +238,8 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
auth,
|
||||
login,
|
||||
signup,
|
||||
me,
|
||||
sfw,
|
||||
theme,
|
||||
|
||||
Reference in New Issue
Block a user