SettingsView drew secret and plain text settings as two inputs differing only in type, autocomplete and the saved-value placeholder; one input binds those. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -139,20 +139,12 @@ onMounted(load);
|
|||||||
>
|
>
|
||||||
<option v-for="c in it.choices" :key="c" :value="c">{{ c }}</option>
|
<option v-for="c in it.choices" :key="c" :value="c">{{ c }}</option>
|
||||||
</select>
|
</select>
|
||||||
<input
|
|
||||||
v-else-if="it.secret"
|
|
||||||
:id="it.key"
|
|
||||||
type="password"
|
|
||||||
autocomplete="new-password"
|
|
||||||
:placeholder="it.is_set ? 'Saved — type to replace' : ''"
|
|
||||||
class="w-56 field"
|
|
||||||
:value="String(it.value)"
|
|
||||||
@input="it.value = ($event.target as HTMLInputElement).value"
|
|
||||||
/>
|
|
||||||
<input
|
<input
|
||||||
v-else
|
v-else
|
||||||
:id="it.key"
|
:id="it.key"
|
||||||
type="text"
|
:type="it.secret ? 'password' : 'text'"
|
||||||
|
:autocomplete="it.secret ? 'new-password' : undefined"
|
||||||
|
:placeholder="it.secret && it.is_set ? 'Saved — type to replace' : undefined"
|
||||||
class="w-56 field"
|
class="w-56 field"
|
||||||
:value="String(it.value)"
|
:value="String(it.value)"
|
||||||
@input="it.value = ($event.target as HTMLInputElement).value"
|
@input="it.value = ($event.target as HTMLInputElement).value"
|
||||||
|
|||||||
Reference in New Issue
Block a user