Skip to content

Build your personal knowledge base with Trilium Notes

chore(standalone/setup): basic spinner for desktop sync

Elian Doran6c3e16db2077
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx
index d4a07f010d..ec26549990 100644
--- a/apps/client/src/setup.tsx
+++ b/apps/client/src/setup.tsx
@@ -35,7 +35,7 @@ function renderState(state: State, setState: (state: State) => void) {
}
function App() {
- const [state, setState] = useState<State>("syncFromDesktop");
+ const [state, setState] = useState<State>("firstOptions");
const [prevState, setPrevState] = useState<State | null>(null);
const [transitioning, setTransitioning] = useState(false);
const prevStateRef = useRef<State>(state);
@@ -268,7 +268,7 @@ function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {
<footer>
<Button text={t("setup.button-back")} onClick={() => setState("firstOptions")} kind="lowProfile" />
- <Button text={t("setup.button-finish-setup")} kind="primary" onClick={handleFinishSetup} />
+ <Button icon="bx-loader bx-spin" text={t("setup.sync-from-desktop-waiting")} kind="primary" disabled />
</footer>
</div>
);
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 03f904137a..6107e8570a 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2262,6 +2262,7 @@
"sync-from-desktop-step3": "Click on Sync category in the note tree.",
"sync-from-desktop-step4": "Change server instance address to: {{- host}} and click Save.",
"sync-from-desktop-step5": "Click \"Test sync\" button to verify connection is successful.",
- "sync-from-desktop-final": "Once you've completed these steps, you can proceed to the next step."
+ "sync-from-desktop-final": "Once you've completed these steps, you can proceed to the next step.",
+ "sync-from-desktop-waiting": "Waiting for connection..."
}
}