gancio-upstream/components/NavBar.vue

26 lines
815 B
Vue
Raw Normal View History

2022-11-24 01:00:30 +01:00
<template>
<v-tabs id='navbar' centered background-color='transparent' optional dense icons-and-text class='mt-4'>
2023-11-21 22:59:30 +01:00
<v-tab v-if='$auth.loggedIn || settings.allow_anon_event' to='/add' :ripple="false">
2022-11-24 01:00:30 +01:00
<span class='d-none d-sm-flex'>{{$t('common.add_event')}}</span>
<v-icon color='primary' v-text='mdiPlus' />
</v-tab>
2023-11-21 22:59:30 +01:00
<v-tab to='/export' :ripple="false">
2022-11-24 01:00:30 +01:00
<span class='d-none d-sm-flex'>{{$t('common.share')}}</span>
<v-icon v-text='mdiShareVariant' />
</v-tab>
</v-tabs>
</template>
<script>
import { mdiPlus, mdiShareVariant, mdiHome, mdiInformation } from '@mdi/js'
import { mapState } from 'vuex'
export default {
name: 'Navbar',
data () {
return { mdiPlus, mdiShareVariant, mdiHome, mdiInformation }
},
computed: mapState(['settings'])
}
</script>