Commit 0fb5bcf1 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: login + logout button

parent 2172f79f
Pipeline #88069 passed with stages
in 7 minutes and 55 seconds
...@@ -58,10 +58,10 @@ ...@@ -58,10 +58,10 @@
API-Tokens API-Tokens
</b-dropdown-item> </b-dropdown-item>
<b-dropdown-divider></b-dropdown-divider> <b-dropdown-divider></b-dropdown-divider>
<b-dropdown-item @click="logout()">Abmelden</b-dropdown-item> <b-dropdown-item @click="$store.commit('logout')">Abmelden</b-dropdown-item>
</template> </template>
</b-nav-item-dropdown> </b-nav-item-dropdown>
<b-nav-item v-else> <b-nav-item v-else to="/login">
<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>
...@@ -79,4 +79,4 @@ ...@@ -79,4 +79,4 @@
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
Markdown is supported
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