mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 07:09:41 +02:00
feat: update inline docs on group page to clarify private/public settings (#2190)
This commit is contained in:
parent
d3f893dec2
commit
01e3bb04b9
3 changed files with 131 additions and 46 deletions
29
frontend/components/global/DocLink.vue
Normal file
29
frontend/components/global/DocLink.vue
Normal file
|
@ -0,0 +1,29 @@
|
|||
<template>
|
||||
<v-btn x-small :href="href" color="primary" target="_blank">
|
||||
<v-icon left small>
|
||||
{{ $globals.icons.folderOutline }}
|
||||
</v-icon>
|
||||
{{ $tc("about.docs") }}
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { computed, defineComponent } from "@nuxtjs/composition-api";
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
link: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const href = computed(() => {
|
||||
// TODO: dynamically set docs link based off env
|
||||
return `https://nightly.mealie.io${props.link}`;
|
||||
});
|
||||
|
||||
return { href };
|
||||
},
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue