feat:#21 updated deps, fixed changes, fixed room list

This commit is contained in:
Elmar Kresse
2024-01-13 04:42:13 +01:00
parent e6fa7b459d
commit 75ae6c619e
10 changed files with 812 additions and 1688 deletions

View File

@@ -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">