fix: unify KAAK password dialog confirm labels

This commit is contained in:
illusia committed 2026-10-12 11:37:53 +08:00
1 parent 05220b7a6e
commit c6eeb49f44
5 files changed
+16 -5

No files matched your search

@@ -81,7 +81,7 @@
v-if="busy"
class="button-spinner"
></span
><span>{{ t("channelPasswordSubmit") }}</span
><span>{{ submitLabel ?? t("channelPasswordSubmit") }}</span
><Icon
v-if="!busy"
name="chevron-right"
@@ -97,7 +97,7 @@ import { ref } from "vue";
import Icon from "../Icon.vue";
import { useDialogFocus } from "../../composables/useDialogFocus.js";
defineProps<{ busy: boolean; error: string; t: (key: string) => string }>();
defineProps<{ busy: boolean; error: string; submitLabel?: string; t: (key: string) => string }>();
const password = defineModel<string>({ required: true });
const emit = defineEmits<{ cancel: []; submit: [] }>();
const dialog = ref<HTMLElement | null>(null);
@@ -73,7 +73,7 @@
type="submit"
class="primary-button channel-password-submit"
:disabled="!password"
><span>{{ t("serverPasswordRetry") }}</span
><span>{{ submitLabel ?? t("serverPasswordRetry") }}</span
><Icon
name="chevron-right"
:size="17" /></button
@@ -88,7 +88,7 @@ import { ref } from "vue";
import Icon from "../Icon.vue";
import { useDialogFocus } from "../../composables/useDialogFocus.js";
defineProps<{ errorCode: string; t: (key: string) => string }>();
defineProps<{ errorCode: string; submitLabel?: string; t: (key: string) => string }>();
const password = defineModel<string>({ required: true });
const emit = defineEmits<{ cancel: []; submit: [] }>();
const dialog = ref<HTMLElement | null>(null);
+3
View File
@@ -176,6 +176,7 @@ export const webClientTranslations: Record<string, Record<string, string>> = {
serverPasswordRequiredLead: "该服务器需要密码,输入密码后重试。",
serverPasswordInvalidLead: "服务器密码不正确,请重新输入后重试。",
serverPasswordRetry: "输入密码并重试",
passwordDialogConfirm: "确定",
serverPasswordRetryPlaceholder: "请输入服务器密码",
switchChannel: "切换频道",
searchChannels: "搜索频道",
@@ -586,6 +587,7 @@ export const webClientTranslations: Record<string, Record<string, string>> = {
serverPasswordRequiredLead: "This TeamSpeak server requires a password. Enter it and try again.",
serverPasswordInvalidLead: "The server password was rejected. Enter it again and retry.",
serverPasswordRetry: "Enter password and retry",
passwordDialogConfirm: "Confirm",
serverPasswordRetryPlaceholder: "Enter the server password",
switchChannel: "Switch channel",
searchChannels: "Search channels",
@@ -990,6 +992,7 @@ webClientTranslations.de = {
serverPasswordRequiredLead: "Dieser TeamSpeak-Server benötigt ein Passwort. Gib es ein und versuche es erneut.",
serverPasswordInvalidLead: "Das Serverpasswort wurde abgelehnt. Gib es erneut ein und versuche es noch einmal.",
serverPasswordRetry: "Passwort eingeben und erneut versuchen",
passwordDialogConfirm: "Bestätigen",
serverPasswordRetryPlaceholder: "Serverpasswort eingeben",
switchChannel: "Kanal wechseln",
searchChannels: "Kanäle suchen",
+3 -1
View File
@@ -919,6 +919,7 @@
v-model="channelPasswordDialog.password"
:busy="channelPasswordDialog.submitting"
:error="channelPasswordDialog.error"
:submit-label="activeSkin?.id === BUILTIN_KAAK_SKIN_ID ? t('passwordDialogConfirm') : undefined"
:t="t"
@cancel="cancelChannelPassword"
@submit="submitChannelPassword"
@@ -929,6 +930,7 @@
v-if="serverPasswordDialog.open"
v-model="serverPasswordDialog.password"
:error-code="serverPasswordDialog.errorCode"
:submit-label="activeSkin?.id === BUILTIN_KAAK_SKIN_ID ? t('passwordDialogConfirm') : undefined"
:t="t"
@cancel="cancelFavoriteServerPassword"
@submit="submitServerPassword"
@@ -1018,7 +1020,7 @@ import { getInitialLanguage, type Language } from "../i18n/web-client.js";
import { clearLocalData as clearStoredLocalData, isLocalPersistenceAvailable, loadLocalPreferences, loadStoredIdentity, removeStoredIdentity, saveLocalPreferences, saveStoredIdentity, type FavoriteServer } from "../services/local-persistence.js";
import { isQuickServerAddressLabel, type QuickServer } from "../services/quick-servers.js";
import type { InstalledSkin, SkinHomeCopy } from "../services/skin-pack.js";
import { isPublicSkinEnabled } from "../services/skin-catalog.js";
import { BUILTIN_KAAK_SKIN_ID, isPublicSkinEnabled } from "../services/skin-catalog.js";
import { BUILTIN_DARK_SKIN, BUILTIN_LIGHT_SKIN } from "../services/skin-runtime.js";
import { applyTheme, getStoredTheme, type ThemeMode } from "../services/theme.js";
import { createScreenWakeLockController, getScreenWakeLockApi, type ScreenWakeLockController, type ScreenWakeLockSnapshot } from "../services/screen-wake-lock.js";