Skip to content

Build your personal knowledge base with Trilium Notes

client/options/sync/timeout: specify the measurement unit inside of the input field

Adorian Dorane8a745c11a9d
diff --git a/src/public/app/widgets/type_widgets/options/sync.ts b/src/public/app/widgets/type_widgets/options/sync.ts
index e57d07eeaf..6d1f3a8923 100644
--- a/src/public/app/widgets/type_widgets/options/sync.ts
+++ b/src/public/app/widgets/type_widgets/options/sync.ts
@@ -15,8 +15,11 @@ const TPL = `
</div>
<div class="form-group">
- <label for="sync-server-timeout" >${t("sync_2.timeout")}</label>
- <input id="sync-server-timeout" class="sync-server-timeout form-control" min="1" max="10000000" type="number" style="text-align: left;">
+ <label for="sync-server-timeout">${t("sync_2.timeout")}</label>
+ <div class="input-group">
+ <input id="sync-server-timeout" class="sync-server-timeout form-control" min="1" max="10000000" type="number" style="text-align: left;">
+ <span class="input-group-text">${t("sync_2.timeout_unit")}</span>
+ </div>
</div>
<div class="form-group">
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index caa86ac01d..55089834cf 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1334,7 +1334,8 @@
"sync_2": {
"config_title": "Sync Configuration",
"server_address": "Server instance address",
- "timeout": "Sync timeout (milliseconds)",
+ "timeout": "Sync timeout",
+ "timeout_unit": "milliseconds",
"proxy_label": "Sync proxy server (optional)",
"note": "Note",
"note_description": "If you leave the proxy setting blank, the system proxy will be used (applies to desktop/electron build only).",
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index 99b6dd352b..fe4d407696 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -1218,7 +1218,8 @@
"test_button": "Probează sincronizarea",
"test_description": "Această opțiune va testa conexiunea și comunicarea cu serverul de sincronizare. Dacă serverul de sincronizare nu este inițializat, acest lucru va rula și o sincronizare cu documentul local.",
"test_title": "Probează sincronizarea",
- "timeout": "Timp limită de sincronizare (millisecunde)"
+ "timeout": "Timp limită de sincronizare",
+ "timeout_unit": "milisecunde"
},
"table_of_contents": {
"description": "Tabela de conținut va apărea în notițele de tip text atunci când notița are un număr de titluri mai mare decât cel definit. Acest număr se poate personaliza:",