fixed ##264, logo lädt seite neu

This commit is contained in:
Tim Gröger 2020-06-06 13:18:00 +02:00
parent 2daa412d3c
commit df707f28bb
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<v-app-bar app clipped-left clipped-right color="blue accent-4" class="elevation-4" dark dense> <v-app-bar app clipped-left clipped-right color="blue accent-4" class="elevation-4" dark dense>
<v-btn icon to="/login"> <v-btn icon @click="reload()">
<v-img src="@/assets/logo-64.png" contain height="40"></v-img> <v-img src="@/assets/logo-64.png" contain height="40"></v-img>
</v-btn> </v-btn>
<v-toolbar-title>Flaschengeist</v-toolbar-title> <v-toolbar-title>Flaschengeist</v-toolbar-title>
@ -11,7 +11,7 @@
<v-btn icon v-if="isGastro" disabled> <v-btn icon v-if="isGastro" disabled>
<v-icon>{{gastro}}</v-icon> <v-icon>{{gastro}}</v-icon>
</v-btn> </v-btn>
<v-btn icon v-if="isBar" disabled> <v-btn icon v-if="isBar" :to="{name: 'geruecht'}">
<v-icon>{{local_bar}}</v-icon> <v-icon>{{local_bar}}</v-icon>
</v-btn> </v-btn>
<v-btn icon v-if="isUser" disabled> <v-btn icon v-if="isUser" disabled>
@ -42,7 +42,10 @@ export default {
...mapGetters(['isBar', 'isFinanzer', 'isUser', 'isLoggedIn', 'isGastro']) ...mapGetters(['isBar', 'isFinanzer', 'isUser', 'isLoggedIn', 'isGastro'])
}, },
methods: { methods: {
...mapActions(['logout']) ...mapActions(['logout']),
reload() {
location.reload()
}
}, },
} }

View File

@ -29,7 +29,6 @@
</v-toolbar-items> </v-toolbar-items>
</v-toolbar> </v-toolbar>
<v-dialog v-model="overlay"> <v-dialog v-model="overlay">
<v-container>
<v-card> <v-card>
<v-card-title>Entsperre Baransicht</v-card-title> <v-card-title>Entsperre Baransicht</v-card-title>
<v-card-text> <v-card-text>
@ -37,11 +36,10 @@
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-spacer/> <v-spacer/>
<v-btn @click="overlay = false">Abbrechen</v-btn> <v-btn text @click="overlay = false">Abbrechen</v-btn>
<v-btn @click="doUnlock">Entsperren</v-btn> <v-btn text @click="doUnlock">Entsperren</v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</v-container>
</v-dialog> </v-dialog>
</div> </div>
</template> </template>