Commit 6e5fbfec authored by janis.streib's avatar janis.streib 🦉
Browse files

ADD: menu entry for token management

parent 5c915920
...@@ -38,14 +38,18 @@ ...@@ -38,14 +38,18 @@
class="badge badge-pill badge-success" class="badge badge-pill badge-success"
id="trans_count">0</span> id="trans_count">0</span>
</b-nav-item> </b-nav-item>
<b-nav-item-dropdown v-if="$store.state.user"> <b-nav-item-dropdown v-if="$store.state.user" right :toggle-class="$route.path.startsWith('/user/')?'active':''">
<template slot="button-content"> <template slot="button-content">
<font-awesome-icon :icon="['far', 'user']"></font-awesome-icon> <font-awesome-icon :icon="['far', 'user']"></font-awesome-icon>
<span v-if="$store.state.user"> {{$store.state.user.login_name}}</span> <span v-if="$store.state.user"> {{$store.state.user.login_name}}</span>
</template> </template>
<b-dropdown-item v-if="$store.state.user" @click="logout()">Abmelden</b-dropdown-item> <template v-if="$store.state.user">
<b-dropdown-item to="/user/tokens" :active="$route.path === '/user/tokens'">API-Tokens</b-dropdown-item>
<b-dropdown-divider></b-dropdown-divider>
<b-dropdown-item @click="logout()">Abmelden</b-dropdown-item>
</template>
</b-nav-item-dropdown> </b-nav-item-dropdown>
<b-nav-item v-if="!$store.state.user"> <b-nav-item v-else>
<font-awesome-icon :icon="['far', 'user']"></font-awesome-icon> <font-awesome-icon :icon="['far', 'user']"></font-awesome-icon>
<span> Anmelden</span> <span> Anmelden</span>
</b-nav-item> </b-nav-item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment