From c5fe85d309ae7f9fb8ab3da903635167544b72d2 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Tue, 31 Mar 2026 18:52:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E7=AA=97=E5=8F=A3=E7=8E=B0?= =?UTF-8?q?=E5=9C=A8=E4=BC=9A=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=9C=89?= =?UTF-8?q?=E9=85=8D=E7=BD=AEGit=E8=BF=9C=E7=A8=8B=E4=BB=93=E5=BA=93?= =?UTF-8?q?=EF=BC=8C=E6=98=BE=E7=A4=BA=E6=AD=A3=E7=A1=AE=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/push-workspace.tsx | 14 +++++++++++--- src/i18n/messages/ar.json | 1 + src/i18n/messages/de.json | 1 + src/i18n/messages/en.json | 1 + src/i18n/messages/es.json | 1 + src/i18n/messages/fr.json | 1 + src/i18n/messages/ja.json | 1 + src/i18n/messages/ko.json | 1 + src/i18n/messages/pt.json | 1 + src/i18n/messages/zh-CN.json | 1 + src/i18n/messages/zh-TW.json | 1 + 11 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/layout/push-workspace.tsx b/src/components/layout/push-workspace.tsx index 734cec7..ce0c324 100644 --- a/src/components/layout/push-workspace.tsx +++ b/src/components/layout/push-workspace.tsx @@ -414,8 +414,10 @@ export function PushWorkspace({ {pushInfoData.branch} - - {uniqueRemotes.length <= 1 ? ( + {uniqueRemotes.length > 0 && ( + + )} + {uniqueRemotes.length === 0 ? null : uniqueRemotes.length <= 1 ? ( {selectedRemote ?? "origin"}/{pushInfoData.branch} @@ -453,6 +455,10 @@ export function PushWorkspace({
+ ) : uniqueRemotes.length === 0 ? ( +
+ {t("noRemoteConfigured")} +
) : unpushedCommits.length === 0 ? (
{!hasUpstream @@ -533,7 +539,9 @@ export function PushWorkspace({