Open new tab for instrument and instruction document

This commit is contained in:
Lorenz Padberg 2024-04-02 16:35:41 +02:00
parent 51ea997259
commit 9c48d86970
3 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<bulb-icon class="instruction__icon" />
<a
:href="url"
target="_blank"
class="instruction__link"
>{{ text }}</a
>

View File

@ -6,11 +6,12 @@
v-html="value.description"
/>
<router-link
:to="{ name: 'instrument', params: { slug: value.slug } }"
:to="{ name: 'instrument', params: { slug: value.slug }, query: { hideCloseButton: true } }"
class="instrument-widget__button button"
:style="{
borderColor: value.foreground,
}"
target="_blank"
>
{{ $flavor.textInstrument }} anzeigen
</router-link>

View File

@ -5,6 +5,7 @@
>
<div
class="close-button"
v-show="showCloseButton"
@click="back"
>
<cross class="close-button__icon" />
@ -34,6 +35,10 @@ const enableFooter = computed(() => {
return flavor.showFooter;
});
const showCloseButton = computed(() => {
return !Object.keys(route.query).includes('hideCloseButton');
});
const back = () => {
router.go(-1);
};