Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/client/src/components/menu.vue
2020-04-05 02:57:22 +00:00

47 lines
860 B
Vue

<template>
<ul>
<li><i @click.stop.prevent="about" class="fas fa-question-circle" /></li>
<li>
<i
class="fas fa-shield-alt"
v-tooltip="{
content: $t('admin_loggedin'),
placement: 'right',
offset: 5,
boundariesElement: 'body',
}"
v-if="admin"
/>
</li>
</ul>
</template>
<style lang="scss" scoped>
ul {
li {
display: inline-block;
margin-right: 10px;
i {
font-size: 24px;
cursor: pointer;
}
}
}
</style>
<script lang="ts">
import { Component, Ref, Watch, Vue } from 'vue-property-decorator'
@Component({ name: 'neko-menu' })
export default class extends Vue {
get admin() {
return this.$accessor.user.admin
}
about() {
this.$accessor.client.toggleAbout()
}
}
</script>