diff --git a/web/features/deployments/detail/deploy-tab.tsx b/web/features/deployments/detail/deploy-tab.tsx index 69ca0e7c5d..b0176bf558 100644 --- a/web/features/deployments/detail/deploy-tab.tsx +++ b/web/features/deployments/detail/deploy-tab.tsx @@ -160,7 +160,9 @@ const DeployTab: FC = ({ instanceId: appId }) => { ? t('deployDrawer.deploy') : status === 'ready' ? t('deployTab.deployOtherVersion') - : t('deployTab.viewProgress')} + : status === 'deploying' + ? t('deployTab.viewProgress') + : t('deployTab.viewError')} {!isUndeployed && ( diff --git a/web/features/deployments/detail/deploy-tab/deployment-status-summary.tsx b/web/features/deployments/detail/deploy-tab/deployment-status-summary.tsx index 41f66294fb..c3759abf1f 100644 --- a/web/features/deployments/detail/deploy-tab/deployment-status-summary.tsx +++ b/web/features/deployments/detail/deploy-tab/deployment-status-summary.tsx @@ -37,10 +37,11 @@ export const DeploymentStatusSummary: FC = ({ row } if (status === 'deploy_failed') { + const hasRunningRelease = !!activeRelease(row)?.id return ( - {t('deployTab.status.runningWithFailed')} + {t(hasRunningRelease ? 'deployTab.status.runningWithFailed' : 'deployTab.status.deployFailed')} ) } diff --git a/web/i18n/en-US/deployments.json b/web/i18n/en-US/deployments.json index a2cdc40344..628f056b1d 100644 --- a/web/i18n/en-US/deployments.json +++ b/web/i18n/en-US/deployments.json @@ -156,6 +156,7 @@ "deployTab.panel.deploymentId": "Deployment ID", "deployTab.panel.endpoints": "Endpoints", "deployTab.panel.envVars": "Environment variables", + "deployTab.panel.error": "Error", "deployTab.panel.failedRelease": "Failed release", "deployTab.panel.health": "Health", "deployTab.panel.instanceInfo": "Instance info", @@ -169,14 +170,17 @@ "deployTab.panel.runtimeMode": "Runtime mode", "deployTab.panel.runtimeNote": "Runtime note", "deployTab.panel.targetRelease": "Target release", + "deployTab.panel.unknownError": "Deployment failed.", "deployTab.promote": "Promote", "deployTab.retry": "Retry", "deployTab.rollback": "Rollback...", "deployTab.shortcut": "Shortcut", + "deployTab.status.deployFailed": "Deploy failed", "deployTab.status.deployingRelease": "Deploying ({{release}})", "deployTab.status.runningWithFailed": "Running (last deployment failed)", "deployTab.undeploy": "Undeploy", "deployTab.undeployFrom": "Undeploy from {{name}}", + "deployTab.viewError": "View error", "deployTab.viewLogs": "View logs", "deployTab.viewProgress": "View progress", "detail.backToInstances": "Back to app instances", diff --git a/web/i18n/zh-Hans/deployments.json b/web/i18n/zh-Hans/deployments.json index d388ebdd13..c9a1916779 100644 --- a/web/i18n/zh-Hans/deployments.json +++ b/web/i18n/zh-Hans/deployments.json @@ -156,6 +156,7 @@ "deployTab.panel.deploymentId": "部署 ID", "deployTab.panel.endpoints": "端点", "deployTab.panel.envVars": "环境变量", + "deployTab.panel.error": "错误", "deployTab.panel.failedRelease": "失败版本", "deployTab.panel.health": "健康检查", "deployTab.panel.instanceInfo": "实例信息", @@ -169,14 +170,17 @@ "deployTab.panel.runtimeMode": "运行模式", "deployTab.panel.runtimeNote": "运行时备注", "deployTab.panel.targetRelease": "目标版本", + "deployTab.panel.unknownError": "部署失败。", "deployTab.promote": "发布", "deployTab.retry": "重试", "deployTab.rollback": "回滚...", "deployTab.shortcut": "快捷", + "deployTab.status.deployFailed": "部署失败", "deployTab.status.deployingRelease": "部署中({{release}})", "deployTab.status.runningWithFailed": "运行中(上次部署失败)", "deployTab.undeploy": "下线", "deployTab.undeployFrom": "从 {{name}} 取消部署", + "deployTab.viewError": "查看错误", "deployTab.viewLogs": "查看日志", "deployTab.viewProgress": "查看进度", "detail.backToInstances": "返回应用实例",