- {/* Credentials Status */}
- {gitStatus?.isGitRepo && gitStatus.remotes.length > 0 && (
-
-
-
- Authentication
-
-
-
- Credentials for push/pull operations
-
-
-
- {gitStatus.remotes.map((remote) => {
- const credentials = findCredentialsForRepo(remote.url, settings.credentials);
- const originDisplayName = getOriginDisplayName(remote.url);
-
- return (
-
-
-
- {remote.name}
-
- {originDisplayName}
-
-
- {credentials ? (
-
-
- Configured
-
- ) : (
-
- )}
-
-
- {!credentials && (
-
-
-
- No credentials configured for {originDisplayName}.
- Push/pull operations may fail for private repositories.{' '}
-
-
-
- )}
-
- );
- })}
-
-
- )}
-
{/* Sync Status */}
{gitStatus?.isGitRepo && (
@@ -619,21 +720,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
)}
- {/* Operation Results */}
- {(pushResult || pullResult) && (
-