mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
fix :Primary Password Masking no longer present (#1614)
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
promptCancelText,
|
promptCancelText,
|
||||||
promptDismissible,
|
promptDismissible,
|
||||||
promptInputValue,
|
promptInputValue,
|
||||||
|
promptInputType,
|
||||||
promptPattern,
|
promptPattern,
|
||||||
promptErrorMessage
|
promptErrorMessage
|
||||||
} = storeToRefs(modalStore);
|
} = storeToRefs(modalStore);
|
||||||
@@ -130,7 +131,7 @@
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel class="sr-only">Input</FormLabel>
|
<FormLabel class="sr-only">Input</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input v-bind="componentField" />
|
<Input v-bind="componentField" :type="promptInputType" />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -258,6 +258,7 @@ export const useAuthStore = defineStore('Auth', () => {
|
|||||||
.prompt({
|
.prompt({
|
||||||
title: t('prompt.primary_password.header'),
|
title: t('prompt.primary_password.header'),
|
||||||
description: t('prompt.primary_password.description'),
|
description: t('prompt.primary_password.description'),
|
||||||
|
inputType: 'password',
|
||||||
pattern: /[\s\S]{1,32}/
|
pattern: /[\s\S]{1,32}/
|
||||||
})
|
})
|
||||||
.then(async ({ ok, value }) => {
|
.then(async ({ ok, value }) => {
|
||||||
@@ -390,6 +391,7 @@ export const useAuthStore = defineStore('Auth', () => {
|
|||||||
.prompt({
|
.prompt({
|
||||||
title: t('prompt.primary_password.header'),
|
title: t('prompt.primary_password.header'),
|
||||||
description: t('prompt.primary_password.description'),
|
description: t('prompt.primary_password.description'),
|
||||||
|
inputType: 'password',
|
||||||
pattern: /[\s\S]{1,32}/
|
pattern: /[\s\S]{1,32}/
|
||||||
})
|
})
|
||||||
.then(({ ok, value }) => {
|
.then(({ ok, value }) => {
|
||||||
@@ -532,6 +534,7 @@ export const useAuthStore = defineStore('Auth', () => {
|
|||||||
description: t(
|
description: t(
|
||||||
'prompt.primary_password.description'
|
'prompt.primary_password.description'
|
||||||
),
|
),
|
||||||
|
inputType: 'password',
|
||||||
pattern: /[\s\S]{1,32}/
|
pattern: /[\s\S]{1,32}/
|
||||||
})
|
})
|
||||||
.then(async ({ ok, value }) => {
|
.then(async ({ ok, value }) => {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ function translate(key, fallback) {
|
|||||||
* @property {string=} confirmText
|
* @property {string=} confirmText
|
||||||
* @property {string=} cancelText
|
* @property {string=} cancelText
|
||||||
* @property {string=} inputValue
|
* @property {string=} inputValue
|
||||||
|
* @property {string=} inputType
|
||||||
* @property {RegExp | string=} pattern
|
* @property {RegExp | string=} pattern
|
||||||
* @property {string=} errorMessage
|
* @property {string=} errorMessage
|
||||||
* @property {boolean=} dismissible
|
* @property {boolean=} dismissible
|
||||||
@@ -70,6 +71,7 @@ export const useModalStore = defineStore('Modal', () => {
|
|||||||
const promptCancelText = ref('');
|
const promptCancelText = ref('');
|
||||||
const promptDismissible = ref(true);
|
const promptDismissible = ref(true);
|
||||||
const promptInputValue = ref('');
|
const promptInputValue = ref('');
|
||||||
|
const promptInputType = ref('text');
|
||||||
const promptPattern = ref(null);
|
const promptPattern = ref(null);
|
||||||
const promptErrorMessage = ref('');
|
const promptErrorMessage = ref('');
|
||||||
|
|
||||||
@@ -181,6 +183,7 @@ export const useModalStore = defineStore('Modal', () => {
|
|||||||
promptDescription.value = options.description;
|
promptDescription.value = options.description;
|
||||||
promptDismissible.value = options.dismissible !== false;
|
promptDismissible.value = options.dismissible !== false;
|
||||||
promptInputValue.value = inputValueCopy;
|
promptInputValue.value = inputValueCopy;
|
||||||
|
promptInputType.value = options.inputType || 'text';
|
||||||
promptPattern.value = options.pattern ?? null;
|
promptPattern.value = options.pattern ?? null;
|
||||||
promptErrorMessage.value =
|
promptErrorMessage.value =
|
||||||
options.errorMessage ||
|
options.errorMessage ||
|
||||||
@@ -296,6 +299,7 @@ export const useModalStore = defineStore('Modal', () => {
|
|||||||
promptCancelText,
|
promptCancelText,
|
||||||
promptDismissible,
|
promptDismissible,
|
||||||
promptInputValue,
|
promptInputValue,
|
||||||
|
promptInputType,
|
||||||
promptPattern,
|
promptPattern,
|
||||||
promptErrorMessage,
|
promptErrorMessage,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user