Fix: Handle disabled auth in user dropdown

pull/1524/head
Nelson Chan 3 years ago
parent f8f19d8dc5
commit e0966e55c8

@ -38,7 +38,10 @@
<font-awesome-icon icon="angle-down" /> <font-awesome-icon icon="angle-down" />
</div> </div>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><span class="dropdown-item-text">Signed in as <strong>{{ $root.username }}</strong></span></li> <li>
<span v-if="$root.username != null" class="dropdown-item-text">Signed in as <strong>{{ $root.username }}</strong></span>
<span v-if="$root.username == null" class="dropdown-item-text">Auth Disabled.</span>
</li>
<li><hr class="dropdown-divider"></li> <li><hr class="dropdown-divider"></li>
<li> <li>
<router-link to="/settings" class="dropdown-item" :class="{ active: $route.path.includes('settings') }"> <router-link to="/settings" class="dropdown-item" :class="{ active: $route.path.includes('settings') }">

Loading…
Cancel
Save