Merged in fix/side-panel-contact (pull request #254)

Use correct emails for uk and vv
This commit is contained in:
Christian Cueni 2023-12-20 09:33:43 +00:00
commit 28b55e1f85
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import { useUserStore } from "@/stores/user";
const props = defineProps<{
courseName: string;
imageUrl: string;
contactEmail: string;
}>();
const userStore = useUserStore();
@ -101,7 +102,7 @@ async function changeLocale(language: AvailableLanguages) {
<!-- </template>-->
<!-- </i18next>-->
{{ $t("a.Hast du Fragen? Kontaktiere uns") }}:
<a class="underline" href="mailto:vermittler@vbv.ch">vermittler@vbv.ch</a>
<a class="underline" :href="`mailto:${contactEmail}`">{{ contactEmail }}</a>
</div>
</div>
</div>

View File

@ -21,17 +21,20 @@ const courseData = computed(() => {
return {
name: t("a.Überbetriebliche Kurse"),
imageUrl: mood_uk,
contactEmail: "uek-support@vbv-afa.ch",
};
}
if (startsWith(props.courseType, "vv")) {
return {
name: getVVCourseName(props.courseType),
imageUrl: mood_vv,
contactEmail: "vermittler@vbv-afa.ch",
};
} else {
return {
name: "",
imageUrl: "",
contactEmail: "",
};
}
});
@ -43,6 +46,7 @@ const courseData = computed(() => {
class="lg:w-1/3"
:image-url="courseData.imageUrl"
:course-name="courseData.name"
:contact-email="courseData.contactEmail"
/>
<router-view class="lg:w-2/3" />
</div>