add Icon to go to pricelist

This commit is contained in:
Tim Gröger 2020-02-27 22:19:31 +01:00
parent e0697b2a6d
commit afa8945f66
3 changed files with 13 additions and 9 deletions

View File

@ -1,25 +1,28 @@
<template>
<v-app-bar app clipped-left clipped-right hide-on-scroll color="blue accent-4" class="elevation-4" dark>
<v-btn icon>
<v-btn icon to="/">
<v-img src="@/assets/logo-big.png" contain height="40"></v-img>
</v-btn>
<v-toolbar-title>Flaschengeist</v-toolbar-title>
<v-spacer />
<v-btn icon v-if="isFinanzer">
<v-btn icon v-if="isFinanzer" disabled>
<v-icon>{{attach_money}}</v-icon>
</v-btn>
<v-btn icon v-if="isBar">
<v-btn icon v-if="isBar" disabled>
<v-icon>{{local_bar}}</v-icon>
</v-btn>
<v-btn icon v-if="isUser">
<v-btn icon v-if="isUser" disabled>
<v-icon>{{person}}</v-icon>
</v-btn>
<v-btn icon to="/pricelist">
<v-icon>{{list}}</v-icon>
</v-btn>
</v-app-bar>
</template>
<script>
import { mapActions, mapGetters } from 'vuex'
import { mdiCurrencyEur, mdiGlassCocktail, mdiAccount } from '@mdi/js'
import { mdiCurrencyEur, mdiGlassCocktail, mdiAccount, mdiFileMultiple } from '@mdi/js'
export default {
name: 'TitleBar',
@ -27,7 +30,8 @@ export default {
return {
attach_money: mdiCurrencyEur,
local_bar: mdiGlassCocktail,
person: mdiAccount
person: mdiAccount,
list: mdiFileMultiple
}
},
computed: {

View File

@ -1,7 +1,7 @@
//const main = 'https://192.168.5.128:5000/'
const main = 'http://localhost:5000/'
//const main = 'http://localhost:5000/'
//const main = 'http://192.168.5.118:5000/'
//const main = 'https://groeger-clan.duckdns.org:5000/'
const main = 'https://groeger-clan.duckdns.org:5000/'
const url = {
login: main + 'login',

View File

@ -144,7 +144,7 @@ router.beforeEach((to, from, next) => {
if (to.fullPath === '/login') {
if (store.state.login.user.accessToken) {
if (store.state.login.user.group.includes('moneymaster')) {
next('/main/finanzer')
next('/main/finanzer/overview')
} else if (store.state.login.user.group.includes('bar')) {
next('/main/bar/geruecht')
} else if (store.state.login.user.group.includes('user')) {