From c262187496ab32c30eee5db853d13fc9c4ea44bd Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 13 Apr 2026 14:56:45 +0300 Subject: [PATCH] chore(options/advanced): use options row for sync --- .../src/translations/en/translation.json | 4 +++ .../widgets/type_widgets/options/advanced.tsx | 12 ++++---- .../options/components/OptionsRow.css | 16 +++++++++- .../options/components/OptionsRow.tsx | 29 ++++++++++++++++++- 4 files changed, 54 insertions(+), 7 deletions(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index 25e6940e9a..1943cc4b8b 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -1152,7 +1152,11 @@ }, "sync": { "title": "Sync", + "force_full_sync_label": "Force full sync", + "force_full_sync_description": "Trigger a complete synchronization with the sync server, re-uploading all changes.", "force_full_sync_button": "Force full sync", + "fill_entity_changes_label": "Fill entity changes", + "fill_entity_changes_description": "Rebuild entity change records. Use this if sync is missing some changes.", "fill_entity_changes_button": "Fill entity changes records", "full_sync_triggered": "Full sync triggered", "filling_entity_changes": "Filling entity changes rows...", diff --git a/apps/client/src/widgets/type_widgets/options/advanced.tsx b/apps/client/src/widgets/type_widgets/options/advanced.tsx index 8f41d4c69f..62daed3dc1 100644 --- a/apps/client/src/widgets/type_widgets/options/advanced.tsx +++ b/apps/client/src/widgets/type_widgets/options/advanced.tsx @@ -9,7 +9,7 @@ import Button from "../../react/Button"; import Column from "../../react/Column"; import FormText from "../../react/FormText"; import { useTriliumOptionJson } from "../../react/hooks"; -import { OptionsRowWithToggle } from "./components/OptionsRow"; +import { OptionsRowWithButton, OptionsRowWithToggle } from "./components/OptionsRow"; import OptionsSection from "./components/OptionsSection"; export default function AdvancedSettings() { @@ -25,16 +25,18 @@ export default function AdvancedSettings() { function AdvancedSyncOptions() { return ( - + ); +}