|
|
|
@ -38,14 +38,19 @@
|
|
|
|
|
<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>
|
|
|
|
|
<i18n-t v-if="$root.username != null" tag="span" keypath="signedInDisp" class="dropdown-item-text">
|
|
|
|
|
<strong>{{ $root.username }}</strong>
|
|
|
|
|
</i18n-t>
|
|
|
|
|
<span v-if="$root.username == null" class="dropdown-item-text">{{ $t("signedInDispDisabled") }}</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link to="/settings" class="dropdown-item" :class="{ active: $route.path.includes('settings') }">
|
|
|
|
|
<font-awesome-icon icon="cog" /> {{ $t("Settings") }}
|
|
|
|
|
</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li v-if="$root.loggedIn && $root.storage().token !== 'autoLogin'">
|
|
|
|
|
<li v-if="$root.loggedIn && $root.socket.token !== 'autoLogin'">
|
|
|
|
|
<button class="dropdown-item" @click="$root.logout">
|
|
|
|
|
<font-awesome-icon icon="sign-out-alt" />
|
|
|
|
|
{{ $t("Logout") }}
|
|
|
|
@ -230,8 +235,10 @@ main {
|
|
|
|
|
.dropdown-menu {
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
margin-top: 8px !important;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
.dropdown-divider {
|
|
|
|
|
margin: 0;
|
|
|
|
|