add Icon to go to pricelist
This commit is contained in:
parent
e0697b2a6d
commit
afa8945f66
|
@ -1,25 +1,28 @@
|
||||||
<template>
|
<template>
|
||||||
<v-app-bar app clipped-left clipped-right hide-on-scroll color="blue accent-4" class="elevation-4" dark>
|
<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-img src="@/assets/logo-big.png" contain height="40"></v-img>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-toolbar-title>Flaschengeist</v-toolbar-title>
|
<v-toolbar-title>Flaschengeist</v-toolbar-title>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
<v-btn icon v-if="isFinanzer">
|
<v-btn icon v-if="isFinanzer" disabled>
|
||||||
<v-icon>{{attach_money}}</v-icon>
|
<v-icon>{{attach_money}}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn icon v-if="isBar">
|
<v-btn icon v-if="isBar" disabled>
|
||||||
<v-icon>{{local_bar}}</v-icon>
|
<v-icon>{{local_bar}}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn icon v-if="isUser">
|
<v-btn icon v-if="isUser" disabled>
|
||||||
<v-icon>{{person}}</v-icon>
|
<v-icon>{{person}}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
<v-btn icon to="/pricelist">
|
||||||
|
<v-icon>{{list}}</v-icon>
|
||||||
|
</v-btn>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapGetters } from 'vuex'
|
import { mapActions, mapGetters } from 'vuex'
|
||||||
import { mdiCurrencyEur, mdiGlassCocktail, mdiAccount } from '@mdi/js'
|
import { mdiCurrencyEur, mdiGlassCocktail, mdiAccount, mdiFileMultiple } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TitleBar',
|
name: 'TitleBar',
|
||||||
|
@ -27,7 +30,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
attach_money: mdiCurrencyEur,
|
attach_money: mdiCurrencyEur,
|
||||||
local_bar: mdiGlassCocktail,
|
local_bar: mdiGlassCocktail,
|
||||||
person: mdiAccount
|
person: mdiAccount,
|
||||||
|
list: mdiFileMultiple
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//const main = 'https://192.168.5.128:5000/'
|
//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 = 'http://192.168.5.118:5000/'
|
||||||
//const main = 'https://groeger-clan.duckdns.org:5000/'
|
const main = 'https://groeger-clan.duckdns.org:5000/'
|
||||||
|
|
||||||
const url = {
|
const url = {
|
||||||
login: main + 'login',
|
login: main + 'login',
|
||||||
|
|
|
@ -144,7 +144,7 @@ router.beforeEach((to, from, next) => {
|
||||||
if (to.fullPath === '/login') {
|
if (to.fullPath === '/login') {
|
||||||
if (store.state.login.user.accessToken) {
|
if (store.state.login.user.accessToken) {
|
||||||
if (store.state.login.user.group.includes('moneymaster')) {
|
if (store.state.login.user.group.includes('moneymaster')) {
|
||||||
next('/main/finanzer')
|
next('/main/finanzer/overview')
|
||||||
} else if (store.state.login.user.group.includes('bar')) {
|
} else if (store.state.login.user.group.includes('bar')) {
|
||||||
next('/main/bar/geruecht')
|
next('/main/bar/geruecht')
|
||||||
} else if (store.state.login.user.group.includes('user')) {
|
} else if (store.state.login.user.group.includes('user')) {
|
||||||
|
|
Loading…
Reference in New Issue