fix :Primary Password Masking no longer present (#1614)

This commit is contained in:
pa
2026-01-31 22:06:24 +09:00
parent 14558238c5
commit 1c587e17d2
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -47,6 +47,7 @@ function translate(key, fallback) {
* @property {string=} confirmText
* @property {string=} cancelText
* @property {string=} inputValue
* @property {string=} inputType
* @property {RegExp | string=} pattern
* @property {string=} errorMessage
* @property {boolean=} dismissible
@@ -70,6 +71,7 @@ export const useModalStore = defineStore('Modal', () => {
const promptCancelText = ref('');
const promptDismissible = ref(true);
const promptInputValue = ref('');
const promptInputType = ref('text');
const promptPattern = ref(null);
const promptErrorMessage = ref('');
@@ -181,6 +183,7 @@ export const useModalStore = defineStore('Modal', () => {
promptDescription.value = options.description;
promptDismissible.value = options.dismissible !== false;
promptInputValue.value = inputValueCopy;
promptInputType.value = options.inputType || 'text';
promptPattern.value = options.pattern ?? null;
promptErrorMessage.value =
options.errorMessage ||
@@ -296,6 +299,7 @@ export const useModalStore = defineStore('Modal', () => {
promptCancelText,
promptDismissible,
promptInputValue,
promptInputType,
promptPattern,
promptErrorMessage,