feat(sync): expose upload flags in SyncTargetInfo for the edit form
row_to_info now returns upload_transcript/notes/summary/recording, trigger_on_finalize, allow_plaintext_lan, encrypt_before_upload so the UI can pre-fill an edit form accurately (still never the secret, FR-SYNC-6).
This commit is contained in:
1 parent
724ce4ba3b
commit
149f2c995d
2 files changed
+16
No files matched your search
@@ -233,6 +233,15 @@ pub struct SyncTargetInfo {
|
||||
pub enabled: bool,
|
||||
pub third_party: bool,
|
||||
pub host: Option<String>,
|
||||
// Upload selection + options, so the UI can pre-fill an edit form (the secret
|
||||
// is never included — FR-SYNC-6).
|
||||
pub upload_transcript: bool,
|
||||
pub upload_notes: bool,
|
||||
pub upload_summary: bool,
|
||||
pub upload_recording: bool,
|
||||
pub trigger_on_finalize: bool,
|
||||
pub allow_plaintext_lan: bool,
|
||||
pub encrypt_before_upload: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
||||
@@ -281,6 +281,13 @@ pub fn row_to_info(row: &crate::storage::SyncTargetRow) -> SyncTargetInfo {
|
||||
enabled: row.enabled,
|
||||
third_party: row.kind != "webdav",
|
||||
host,
|
||||
upload_transcript: row.upload_transcript,
|
||||
upload_notes: row.upload_notes,
|
||||
upload_summary: row.upload_summary,
|
||||
upload_recording: row.upload_recording,
|
||||
trigger_on_finalize: row.trigger_on_finalize,
|
||||
allow_plaintext_lan: row.allow_plaintext_lan,
|
||||
encrypt_before_upload: row.encrypt_before_upload,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user