mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 03:52:26 +01:00
feat:#21 updated deps, fixed changes, fixed room list
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { computed } from "vue";
|
||||
import localeStore from "../store/localeStore.ts";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { DropdownChangeEvent } from "primevue/dropdown";
|
||||
const { t } = useI18n({ useScope: "global" });
|
||||
|
||||
const countries = computed(() => [
|
||||
@@ -17,8 +18,8 @@ function displayCountry(code: string) {
|
||||
return countries.value.find((country) => country.code === code)?.name;
|
||||
}
|
||||
|
||||
function updateLocale(locale: string) {
|
||||
localeStore().setLocale(locale);
|
||||
function updateLocale(dropdownChangeEvent: DropdownChangeEvent) {
|
||||
localeStore().setLocale(dropdownChangeEvent.value);
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
@@ -28,7 +29,7 @@ function updateLocale(locale: string) {
|
||||
option-label="name"
|
||||
placeholder="Select a Language"
|
||||
class="w-full md:w-14rem"
|
||||
@change="updateLocale($event.data)"
|
||||
@change="updateLocale($event)"
|
||||
>
|
||||
<template #value="slotProps">
|
||||
<div v-if="slotProps.value" class="flex align-items-center">
|
||||
|
||||
Reference in New Issue
Block a user