Open new tab for instrument and instruction document
This commit is contained in:
parent
37b1b44567
commit
4935d06aa2
|
|
@ -6,6 +6,7 @@
|
|||
<bulb-icon class="instruction__icon" />
|
||||
<a
|
||||
:href="url"
|
||||
target="_blank"
|
||||
class="instruction__link"
|
||||
>{{ text }}</a
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue