feat(ui): encrypt-before-upload checkbox in sync target form (T9.12)
This commit is contained in:
1 parent
ce562ca67a
commit
bb03cd2328
1 file changed
+10
@@ -195,6 +195,7 @@
|
|||||||
upload_recording: false,
|
upload_recording: false,
|
||||||
trigger_on_finalize: true,
|
trigger_on_finalize: true,
|
||||||
allow_plaintext_lan: false,
|
allow_plaintext_lan: false,
|
||||||
|
encrypt_before_upload: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
function setKind(k: SyncKind) {
|
function setKind(k: SyncKind) {
|
||||||
@@ -570,6 +571,15 @@
|
|||||||
><input type="checkbox" bind:checked={form.allow_plaintext_lan} /> Allow plaintext http for
|
><input type="checkbox" bind:checked={form.allow_plaintext_lan} /> Allow plaintext http for
|
||||||
a LAN address (not recommended)</label
|
a LAN address (not recommended)</label
|
||||||
>
|
>
|
||||||
|
<label class="row small">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
bind:checked={form.encrypt_before_upload}
|
||||||
|
disabled={!vault?.unlocked}
|
||||||
|
/>
|
||||||
|
Encrypt before upload (destination stores only ciphertext)
|
||||||
|
{#if !vault?.unlocked}<span class="muted">— requires an unlocked vault</span>{/if}
|
||||||
|
</label>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button onclick={testConnection}>Test connection</button>
|
<button onclick={testConnection}>Test connection</button>
|
||||||
<button class="primary" onclick={addTarget} disabled={!form.name || !form.base_url}
|
<button class="primary" onclick={addTarget} disabled={!form.name || !form.base_url}
|
||||||
|
|||||||
Reference in new issue
Block a user