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" @touchmove="touchMove"
> >
<div class="side-drawer-heading" @click="toggleDrawer"> <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"/> <img :src="logo"/>
<span>{{sitename}}</span> <span>{{sitename}}</span>
</div> </div>
<user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser"/>
</div> </div>
<ul> <ul>
<li v-if="currentUser" @click="toggleDrawer"> <li v-if="currentUser" @click="toggleDrawer">