diff --git a/web/src/ReleaseTargets.tsx b/web/src/ReleaseTargets.tsx index 99cd399..76b954d 100644 --- a/web/src/ReleaseTargets.tsx +++ b/web/src/ReleaseTargets.tsx @@ -1891,9 +1891,7 @@ export function ReleaseTargetsView(props: ViewProps) { : inSync ? { label: '✓ 已同步', - hint: canCapture - ? captureAction.hint - : `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`, + hint: canCapture ? captureAction.hint : `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`, disabled: true, run: () => {}, } @@ -1914,20 +1912,20 @@ export function ReleaseTargetsView(props: ViewProps) { ? captureAction : null : productionClass === 'nonempty' && baseline.canStart - ? { - label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)', - hint: '生产目标非空但还没有权威版本,先登记一份基线。', - disabled: baseline.pending, - run: baseline.onStart, - } - : !authorizationActive && sync.canSign ? { - label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)', - hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。', - disabled: sync.pendingGrant, - run: sync.onGrant, + label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)', + hint: '生产目标非空但还没有权威版本,先登记一份基线。', + disabled: baseline.pending, + run: baseline.onStart, } - : null + : !authorizationActive && sync.canSign + ? { + label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)', + hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。', + disabled: sync.pendingGrant, + run: sync.onGrant, + } + : null const productionText = productionClass === 'known' && production?.version @@ -2030,8 +2028,8 @@ export function ReleaseTargetsView(props: ViewProps) { : inSync ? '已同步,无需签发' : sync.canSign - ? '可在下方签发' - : '需管理员签发'} + ? '可在下方签发' + : '需管理员签发'}