noproxy which forces ignoring even the system proxy and respects NODE_TLS_REJECT_UNAUTHORIZED.",
+ "config_title": "Sync Server",
+ "server_address": "Server address",
+ "server_address_description": "URL of the Trilium server to sync with.",
+ "timeout": "Connection timeout",
+ "timeout_description": "Time to wait before giving up on a slow connection.",
+ "proxy_label": "Proxy server",
+ "proxy_description": "Leave blank to use system proxy (desktop only). Use \"noproxy\" to bypass all proxies.",
"save": "Save",
"help": "Help",
- "test_title": "Sync Test",
- "test_description": "This will test the connection and handshake to the sync server. If the sync server isn't initialized, this will set it up to sync with the local document.",
+ "test_title": "Test Connection",
+ "test_description": "Test the connection to the sync server. If not initialized, this will set up syncing.",
"test_button": "Test sync",
"handshake_failed": "Sync server handshake failed, error: {{message}}"
},
diff --git a/apps/client/src/widgets/type_widgets/options/sync.tsx b/apps/client/src/widgets/type_widgets/options/sync.tsx
index f583ba5496..68c68c99bf 100644
--- a/apps/client/src/widgets/type_widgets/options/sync.tsx
+++ b/apps/client/src/widgets/type_widgets/options/sync.tsx
@@ -6,22 +6,14 @@ import server from "../../../services/server";
import toast from "../../../services/toast";
import { openInAppHelpFromUrl } from "../../../services/utils";
import Button from "../../react/Button";
-import FormGroup from "../../react/FormGroup";
-import FormText from "../../react/FormText";
import FormTextBox from "../../react/FormTextBox";
import { useTriliumOptions } from "../../react/hooks";
-import RawHtml from "../../react/RawHtml";
-import OptionsRow from "./components/OptionsRow";
+import OptionsRow, { OptionsRowWithButton } from "./components/OptionsRow";
import OptionsSection from "./components/OptionsSection";
import TimeSelector from "./components/TimeSelector";
export default function SyncOptions() {
- return (
- <>
-