diff --git a/web/VaultPanel.tsx b/web/VaultPanel.tsx index 92e66e4..c295b16 100644 --- a/web/VaultPanel.tsx +++ b/web/VaultPanel.tsx @@ -108,7 +108,8 @@ export const VaultPanel = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - const save = async () => { + const save = async (ev?: React.FormEvent) => { + ev?.preventDefault(); setSaving(true); setError(null); try { @@ -182,14 +183,11 @@ export const VaultPanel = () => { -
+
setUrl(ev.target.value)} - onKeyDown={(ev) => { - if (ev.key === 'Enter' && dirty && !saving) void save(); - }} placeholder="https://vault.example.com" spellCheck={false} autoCapitalize="none" @@ -206,8 +204,7 @@ export const VaultPanel = () => {
)}
-
+ {config?.configured && (