add Icon to go to pricelist
This commit is contained in:
parent
e0697b2a6d
commit
afa8945f66
|
@ -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: {
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue