Skip to content

Commit

Permalink
Adding language dropdown menu in InstallationManagement
Browse files Browse the repository at this point in the history
Signed-off-by: julianbollig <[email protected]>
  • Loading branch information
julianbollig committed Dec 23, 2024
1 parent b639fe9 commit e7b23e5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions WebUI/src/components/InstallationManagement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,35 @@
<div class="dialog-container z-10 pt-10" style="display: flex">
<p>{{ languages.BACKEND_TERMS_AND_CONDITIONS }}</p>
</div>
<!-- Change Language Settings -->
<div class="place-content-end flex gap-2">
<drop-selector :array="i18n.languageOptions" @change="i18n.changeLanguage" class="max-w-40">
<template #selected>
<div class="flex gap-2 items-center">
<span class="rounded-full bg-green-500 w-2 h-2"></span>
<span>{{ i18n.currentLanguageName }}</span>
</div>
</template>
<template #list="slotItem">
<div class="flex gap-2 items-center">
<span class="rounded-full bg-green-500 w-2 h-2"></span>
<span>{{ slotItem.item.name }}</span>
</div>
</template>
</drop-selector>
</div>
</div>
</div>


</template>

<script setup lang="ts">
import {mapServiceNameToDisplayName, mapStatusToColor, mapToDisplayStatus} from "@/lib/utils.ts";
import {toast} from "@/assets/js/toast.ts";
import {useBackendServices} from '@/assets/js/store/backendServices';
import DropSelector from "@/components/DropSelector.vue";
import {useI18N} from '@/assets/js/store/i18n';
const emits = defineEmits<{
(e: "close"): void
Expand All @@ -116,6 +136,7 @@ const emits = defineEmits<{
type ExtendedApiServiceInformation = ApiServiceInformation & { enabled: boolean, isLoading: boolean }
const backendServices = useBackendServices();
const i18n = useI18N();
let toBeInstalledQueue: ExtendedApiServiceInformation[] = []
Expand Down

0 comments on commit e7b23e5

Please sign in to comment.