mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
Fix: Handle disabled auth in user dropdown
This commit is contained in:
parent
f8f19d8dc5
commit
e0966e55c8
1 changed files with 4 additions and 1 deletions
|
@ -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') }">
|
||||
|
|
Loading…
Reference in a new issue