Update Back-end connection & fonction Front-end
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item v-if="currentUser">
|
||||
<v-btn @click="handleLogout" class="full-width-btn" flat>Déconnecter</v-btn>
|
||||
<v-btn @click="logout" class="full-width-btn" flat>Déconnecter</v-btn>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
@@ -97,7 +97,7 @@
|
||||
<v-list-item v-if="currentUser" @click="openWalletDialog" prepend-icon="mdi-wallet" title="Bourse"
|
||||
value="wallet"></v-list-item>
|
||||
|
||||
<v-list-item v-if="currentUser" @click="handleLogout" style="margin-top: 110%;" prepend-icon="mdi-logout"
|
||||
<v-list-item v-if="currentUser" @click="logout" style="margin-top: 110%;" prepend-icon="mdi-logout"
|
||||
title="Déconnecter" value="logout"></v-list-item>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
@@ -191,14 +191,6 @@ function logout() {
|
||||
localStorage.removeItem('jwt');
|
||||
currentUser = null;
|
||||
currentUserName.value = "INVITÉ";
|
||||
}
|
||||
|
||||
function handleLogout() {
|
||||
logout();
|
||||
Reroot();
|
||||
}
|
||||
|
||||
function Reroot() {
|
||||
router.push('/');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user