mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Only display the git sync indicator if there are at least 2 commits
This commit is contained in:
1 file changed
+2
-1
@@ -21,7 +21,8 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) {
|
||||
const hasRemote = !!originRemote;
|
||||
|
||||
// Determine if we need to show the indicator dot
|
||||
const showIndicator = !isGitStatusLoading && !hasRemote;
|
||||
// Show indicator if no origin remote is configured, UNLESS there are less than 2 commits
|
||||
const showIndicator = !isGitStatusLoading && !hasRemote && (gitStatus?.totalCommits ?? 0) >= 2;
|
||||
|
||||
return (
|
||||
<Popover open={open} onOpenChange={setOpen}>
|
||||
|
||||
Reference in new issue
Block a user