2020-01-17 00:01:10 +00:00
< template >
< div >
< v -navigation -drawer
v - if = "isLoggedIn"
mini - variant
expand - on - hover
app
clipped
permanent
overflow
>
< v -list >
2020-03-04 20:12:08 +00:00
< v -list -item v-if ="isExtern" class="title" >
< v -list -item -icon >
< v -icon > { { person } } < / v - i c o n >
< / v - l i s t - i t e m - i c o n >
< v -list -item -title >
{ { user . firstname } } { { user . lastname } }
< / v - l i s t - i t e m - t i t l e >
< / v - l i s t - i t e m >
2020-05-27 10:09:54 +00:00
< v -list -item :disabled ="lockedBar" v-if ="isUser" class="title" link :to="{name: 'add'}" >
2020-01-17 00:01:10 +00:00
< v -list -item -icon >
2020-01-26 22:55:59 +00:00
< v -icon > { { person } } < / v - i c o n >
2020-01-17 00:01:10 +00:00
< / v - l i s t - i t e m - i c o n >
2020-01-23 22:25:21 +00:00
< v -list -item -title > { { user . firstname } } { { user . lastname } } < / v - l i s t - i t e m - t i t l e >
2020-01-17 00:01:10 +00:00
< / v - l i s t - i t e m >
2020-05-27 10:09:54 +00:00
< v -list -item v-if ="isBar" class="title" link :to="{name: 'geruecht'}" >
2020-01-17 00:01:10 +00:00
< v -list -item -icon >
2020-01-26 22:55:59 +00:00
< v -icon > { { glass _cocktail } } < / v - i c o n >
2020-01-17 00:01:10 +00:00
< / v - l i s t - i t e m - i c o n >
< v -list -item -title >
2020-01-23 22:25:21 +00:00
Bar
2020-01-17 00:01:10 +00:00
< / v - l i s t - i t e m - t i t l e >
< / v - l i s t - i t e m >
2020-05-27 10:09:54 +00:00
< v -list -item :disabled ="lockedBar" v-if ="isManagement" class="title" link :to="{name: 'serviceManagement', params: {year: new Date().getFullYear(), month: new Date().getMonth() + 1}}" >
2020-03-01 18:18:58 +00:00
< v -list -item -icon >
< v -icon > { { king } } < / v - i c o n >
< / v - l i s t - i t e m - i c o n >
< v -list -item -title >
Vorstand
< / v - l i s t - i t e m - t i t l e >
< / v - l i s t - i t e m >
2020-05-27 10:09:54 +00:00
< v -list -item :disabled ="lockedBar" v-if ="isGastro" class="title" link :to="{name: 'gastroPricelist'}" >
2020-03-01 18:18:58 +00:00
< v -list -item -icon >
< v -icon > { { gastro } } < / v - i c o n >
< / v - l i s t - i t e m - i c o n >
< v -list -item -title >
Gastro
< / v - l i s t - i t e m - t i t l e >
< / v - l i s t - i t e m >
2020-05-27 10:09:54 +00:00
< v -list -item :disabled ="lockedBar" v-if ="isFinanzer" class="title" link :to="{name: 'overview'}" >
2020-01-17 00:01:10 +00:00
< v -list -item -icon >
2020-01-26 22:55:59 +00:00
< v -icon > { { attach _money } } < / v - i c o n >
2020-01-17 00:01:10 +00:00
< / v - l i s t - i t e m - i c o n >
< v -list -item -title > Finanzer < / v - l i s t - i t e m - t i t l e >
< / v - l i s t - i t e m >
< / v - l i s t >
< v -divider / >
2020-03-01 18:18:58 +00:00
< router -view name = "nav" / >
2020-01-17 00:01:10 +00:00
< template v -slot : append >
< v -list >
< v -list -item >
< v -list -item -icon >
2020-01-26 22:55:59 +00:00
< v -icon > { { exit _to _app } } < / v - i c o n >
2020-01-17 00:01:10 +00:00
< / v - l i s t - i t e m - i c o n >
< v -list -item -title >
< v -btn block text @click ="logout" > Logout < / v-btn >
< / v - l i s t - i t e m - t i t l e >
< / v - l i s t - i t e m >
< / v - l i s t >
< / template >
< / v - n a v i g a t i o n - d r a w e r >
< router -view / >
< / div >
< / template >
< script >
import { mapActions , mapGetters } from 'vuex'
2020-03-01 18:18:58 +00:00
import { mdiAccount , mdiCurrencyEur , mdiExitToApp , mdiGlassCocktail , mdiChessKing , mdiFoodForkDrink } from '@mdi/js'
2020-01-17 00:01:10 +00:00
export default {
name : 'MainView' ,
2020-01-26 22:55:59 +00:00
data ( ) {
return {
person : mdiAccount ,
attach _money : mdiCurrencyEur ,
exit _to _app : mdiExitToApp ,
2020-03-01 18:18:58 +00:00
glass _cocktail : mdiGlassCocktail ,
king : mdiChessKing ,
gastro : mdiFoodForkDrink
2020-01-26 22:55:59 +00:00
}
} ,
2020-01-17 00:01:10 +00:00
components : { } ,
created ( ) {
} ,
methods : {
... mapActions ( {
logout : 'logout'
} )
} ,
computed : {
... mapGetters ( {
group : 'group' ,
isBar : 'isBar' ,
isUser : 'isUser' ,
isFinanzer : 'isFinanzer' ,
2020-03-01 18:18:58 +00:00
isGastro : 'isGastro' ,
isManagement : 'isManagement' ,
2020-01-23 22:25:21 +00:00
isLoggedIn : 'isLoggedIn' ,
2020-03-04 20:12:08 +00:00
isExtern : 'isExtern' ,
2020-05-11 21:03:16 +00:00
user : 'user' ,
lockedBar : 'barUsers/locked'
2020-01-17 00:01:10 +00:00
} )
}
}
< / script >
< style scoped > < / style >