diff --git a/src/client/RepoView.tsx b/src/client/RepoView.tsx index b88a793..9cc79a2 100644 --- a/src/client/RepoView.tsx +++ b/src/client/RepoView.tsx @@ -75,7 +75,7 @@ interface ToastState { export function RepoView({ repoPath }: { repoPath: string }) { const [credReq, setCredReq] = React.useState<{ id: string; prompt: string } | null>(null); - useLiveUpdates(repoPath, (e) => setCredReq({ id: e.id, prompt: e.prompt })); + const connection = useLiveUpdates(repoPath, (e) => setCredReq({ id: e.id, prompt: e.prompt })); const [settings, setSetting] = useSettings(); const repoQ = useRepo(repoPath); @@ -682,6 +682,11 @@ export function RepoView({ repoPath }: { repoPath: string }) {
+ {connection === 'reconnecting' && ( + + Reconnecting… + + )}