mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
- Implement emails.js in backend as well. - Move backend links.js into emails.js, because code is not a duplicate of webapp anymore.
27 lines
467 B
Vue
27 lines
467 B
Vue
<template>
|
|
<nuxt-link
|
|
v-if="pageParams.isInternalPage"
|
|
:to="pageParams.internalPage.pageRoute"
|
|
:data-test="pageParams.name + '-nuxt-link'"
|
|
>
|
|
<slot />
|
|
</nuxt-link>
|
|
<a
|
|
v-else
|
|
:href="pageParams.externalLink"
|
|
target="_blank"
|
|
:data-test="pageParams.name + '-link'"
|
|
>
|
|
<slot />
|
|
</a>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'PageParamsLink',
|
|
props: {
|
|
pageParams: { type: Object, required: true },
|
|
},
|
|
}
|
|
</script>
|