This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rebuilding-uis/src/components/HeaderButtons.vue

39 lines
929 B
Vue
Raw Normal View History

<template>
<div class="hidden md:block">
<ul class="list-reset flex">
<li v-for="(link, i) in links" :key="link.title" :class="{'ml-6': i !== 0}">
<button
type="button"
class="text-xs no-underline hover:underline flex flex-col items-center justify-center"
:class="{
'text-grey cursor-not-allowed': link.disabled,
2019-03-21 00:42:57 +00:00
'text-blue-300': !link.disabled,
}"
:disabled="link.disabled"
>
2019-03-21 00:48:02 +00:00
<svg class="h-6 w-6 fill-current mb-2" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#${link.icon}`"></use></svg>
{{ link.title }}
</button>
</li>
</ul>
</div>
</template>
<script>
2018-12-27 10:46:20 +00:00
import _ from 'lodash'
export default {
props: {
2019-03-30 00:09:48 +00:00
links: Array
},
2018-12-27 10:46:20 +00:00
computed: {
filteredLinks: function () {
let links = this.links
return _.omitBy(links, _.isEmpty)
}
}
}
</script>