Improve readability using v-if and v-else
This commit is contained in:
parent
4528a4cbfa
commit
5675b9326c
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@
|
|||
@touchmove="touchMove"
|
||||
>
|
||||
<div class="side-drawer-heading" @click="toggleDrawer">
|
||||
<div class="side-drawer__logo-wrapper" v-if="!currentUser">
|
||||
<user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser"/>
|
||||
<div class="side-drawer__logo-wrapper" v-else>
|
||||
<img :src="logo"/>
|
||||
<span>{{sitename}}</span>
|
||||
</div>
|
||||
<user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser"/>
|
||||
</div>
|
||||
<ul>
|
||||
<li v-if="currentUser" @click="toggleDrawer">
|
||||
|
|
Loading…
Reference in a new issue