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" /> <bulb-icon class="instruction__icon" />
<a <a
:href="url" :href="url"
target="_blank"
class="instruction__link" class="instruction__link"
>{{ text }}</a >{{ text }}</a
> >

View File

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

View File

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