This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/components/LinksNav.vue

24 lines
1.2 KiB
Vue
Raw Normal View History

2021-05-13 04:54:13 -07:00
<template>
2021-08-30 02:36:57 -07:00
<Submenu v-if="config.links.split" :links="[
{name: 'links.links', route: config.links.route, icon: 'bookmark', condition: config.links.links.length > 0},
{name: 'links.academic', route: config.links.academicRoute, icon: 'vial', condition: config.links.academic.length > 0},
{name: 'links.blog', route: config.links.blogRoute, routesExtra: ['blogEntry', 'blogEntryShortcut'], icon: 'pen-nib', condition: config.links.blog},
2021-10-26 11:13:42 -07:00
{name: 'links.zine.header', route: config.links.zine.route, icon: 'zine.svg', iconInverse: darkMode, condition: config.links.zine && config.links.zine.enabled},
2021-10-21 11:43:57 -07:00
{name: 'links.mediaShort', route: config.links.mediaRoute, icon: 'tv', condition: config.links.mediaGuests.length > 0 || config.links.mediaMentions.length > 0},
2021-08-30 02:36:57 -07:00
{name: 'faq.header', route: config.faq.route, icon: 'map-marker-question', condition: config.faq.enabled},
{name: 'english.header', route: config.english.route, icon: 'globe-americas', condition: config.english.enabled},
]"/>
2021-05-13 04:54:13 -07:00
</template>
2021-10-26 11:13:42 -07:00
<script>
import {mapState} from "vuex";
export default {
computed: {
...mapState([
'darkMode',
]),
},
};
</script>