Fix: Handle disabled auth in user dropdown

This commit is contained in:
Nelson Chan 2022-04-20 15:01:13 +08:00
parent f8f19d8dc5
commit e0966e55c8

View file

@ -38,7 +38,10 @@
<font-awesome-icon icon="angle-down" />
</div>
<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>
<router-link to="/settings" class="dropdown-item" :class="{ active: $route.path.includes('settings') }">