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);