Fixed login link in sidebar.

This commit is contained in:
DebaucheryLibrarian 2021-06-28 18:45:38 +02:00
parent dce27e985e
commit 12c0e8e828
2 changed files with 17 additions and 7 deletions

View File

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

View File

@ -153,7 +153,7 @@ const banners = [
width: 728, width: 728,
height: 90, height: 90,
network: 'julesjordan', network: 'julesjordan',
tags: ['sex', 'blowjob', 'big-boobs', 'brunette'], tags: ['sex', 'blowjob', 'facefucking', 'big-boobs', 'brunette'],
}, },
{ {
id: 'manuelferrara_728_90_asses', id: 'manuelferrara_728_90_asses',
@ -264,6 +264,11 @@ const campaigns = [
url: 'https://www.iyalc.com/21naturals/go.php?pr=8&su=1&si=209&ad=277470&pa=index&ar=&buffer=', url: 'https://www.iyalc.com/21naturals/go.php?pr=8&su=1&si=209&ad=277470&pa=index&ar=&buffer=',
comment: 'per signup', comment: 'per signup',
}, },
{
network: 'brazzers',
url: 'https://landing.brazzersnetwork.com/?ats=eyJhIjozMTYwOTcsImMiOjU5MzI1Mzk5LCJuIjoxNCwicyI6OTAsImUiOjg4MDMsInAiOjExfQ==',
comment: '$30 per signup',
},
{ {
network: 'evilangel', network: 'evilangel',
url: 'https://www.iyalc.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=', url: 'https://www.iyalc.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=',