File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2
2
import { ref , watchEffect } from " vue" ;
3
3
import { useRouter } from " vue-router" ;
4
4
import { logout } from " ../../auth.js" ;
5
+ import IconLogout from " ../icons/IconLogout.vue" ;
5
6
6
7
const router = useRouter ();
7
8
const errorMessage = ref (" " );
@@ -27,11 +28,13 @@ async function handleLogout() {
27
28
<template >
28
29
<div v-if =" isAuthenticated" >
29
30
<router-link to =" #" @click.prevent =" handleLogout" class =" text-gray-400 dark:text-white-400 inline-block py-2 px-4 text-sm font-medium" >
31
+ <IconLogout class =" inline-block" />
30
32
Logout
31
33
</router-link >
32
34
</div >
33
35
<div v-else >
34
36
<router-link :to =" { name: 'login' }" class =" text-gray-400 dark:text-white-400 inline-block py-2 px-4 text-sm font-medium" >
37
+ <IconLogin class =" inline-block" />
35
38
Login
36
39
</router-link >
37
40
</div >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <svg class =" w-6 h-6"
3
+ xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 512 512" ><path fill =" currentColor" d =" M217 28.098v455.804l142-42.597V70.697zm159.938 26.88l.062 2.327V87h16V55zM119 55v117.27h18V73h62V55zm258 50v16h16v-16zm0 34v236h16V139zm-240 58.727V233H41v46h96v35.273L195.273 256zM244 232c6.627 0 12 10.745 12 24s-5.373 24-12 24-12-10.745-12-24 5.373-24 12-24zM137 339.73h-18V448h18zM377 393v14h16v-14zm0 32v23h16v-23zM32 471v18h167v-18zm290.652 0l-60 18H480v-18z" /></svg >
4
+ </template >
You can’t perform that action at this time.
0 commit comments