Improve readability using v-if and v-else

This commit is contained in:
taehoon 2019-02-04 12:25:28 -05:00
parent 4528a4cbfa
commit 5675b9326c

View File

@ -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">