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" />
|
<bulb-icon class="instruction__icon" />
|
||||||
<a
|
<a
|
||||||
:href="url"
|
:href="url"
|
||||||
|
target="_blank"
|
||||||
class="instruction__link"
|
class="instruction__link"
|
||||||
>{{ text }}</a
|
>{{ text }}</a
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue