diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 01ee13f..7dc48a3 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -153,7 +153,6 @@ const newToken = ref(null); const showCreateModal = ref(false); const showCreateTokenModal = ref(false); -const showProfileModal = ref(false); const showDeleteConfirm = ref(false); const editing = ref(false); const editFields = ref(false); @@ -226,11 +225,6 @@ mcp: true }); -const profileForm = reactive({ - display_name: "", - locale: "en" -}); - // Auto ("") = follow the auth account; the service stores its own otherwise const localeOptions = computed(() => [ { value: "", label: t("profile.languageAuto") }, @@ -931,23 +925,14 @@ showCreateTokenModal.value = false; } -function openProfileModal() { - profileForm.display_name = me.value?.display_name || ""; - profileForm.locale = me.value?.locale || ""; - showProfileModal.value = true; -} - -async function saveProfile() { +async function changeLanguage(value) { try { - // "auto" clears the service-level override; the next /me's + // empty/"auto" clears the service-level override; the next /me's // locale_effective decides the language again (profile -> auth account) - const updated = await api.updateMe({ - display_name: profileForm.display_name || null, - locale: profileForm.locale || "auto" - }); + // override and the effective locale falls back to the auth account + const updated = await api.updateMe({ locale: value || "auto" }); me.value = updated; setLocale(updated.locale_effective); - showProfileModal.value = false; toastProvider.value?.success({ title: t("bio.saved"), text: t("profile.saved"), lifetime: 2000 }); } catch (err) { toastProvider.value?.error({ title: t("common.error"), text: err.message, lifetime: 3000 }); @@ -1221,11 +1206,6 @@ /> -
+ +

{{ t("settings.languageDescription") }}

+
+ +
+
+ +
- -
- - -

{{ t("profile.languageAuto") }}

-
- -
-