This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/components/misc/legal.vue

37 lines
837 B
Vue
Raw Normal View History

<template>
<div class="legal-links">
2024-02-07 11:18:19 +00:00
<BaseButton
v-if="imprintUrl"
:href="imprintUrl"
>
{{ $t('navigation.imprint') }}
</BaseButton>
<span v-if="imprintUrl && privacyPolicyUrl"> | </span>
2024-02-07 11:18:19 +00:00
<BaseButton
v-if="privacyPolicyUrl"
:href="privacyPolicyUrl"
>
{{ $t('navigation.privacy') }}
</BaseButton>
</div>
</template>
<script lang="ts" setup>
import {computed} from 'vue'
import BaseButton from '@/components/base/BaseButton.vue'
2022-09-21 00:21:22 +00:00
import {useConfigStore} from '@/stores/config'
2022-09-21 00:21:22 +00:00
const configStore = useConfigStore()
2022-09-21 00:21:22 +00:00
const imprintUrl = computed(() => configStore.legal.imprintUrl)
const privacyPolicyUrl = computed(() => configStore.legal.privacyPolicyUrl)
</script>
2021-10-18 12:20:46 +00:00
<style lang="scss" scoped>
.legal-links {
margin-top: 1rem;
text-align: right;
color: var(--grey-300);
2021-10-18 12:20:46 +00:00
font-size: 1rem;
}
</style>