diff --git a/dsh-plugin-desktop/src/native-ui/recovery/App.tsx b/dsh-plugin-desktop/src/native-ui/recovery/App.tsx index 7f1c7d0d59..7afa3a56ce 100644 --- a/dsh-plugin-desktop/src/native-ui/recovery/App.tsx +++ b/dsh-plugin-desktop/src/native-ui/recovery/App.tsx @@ -95,7 +95,7 @@ function RollbackPanel({ copy, state }: { readonly copy: DesktopRecoveryCopy; re const numberLocale = state.locale === 'zh' ? 'zh-CN' : 'en-US' return
{state.snapshot.checkpoints.map(checkpoint => { const slotNumber = checkpoint.slotId.slice(-1) - return
{state.locale === 'zh' ? `槽位 ${slotNumber}` : `Slot ${slotNumber}`}{checkpoint.status === 'empty' ? copy.noHealthyStartup : checkpoint.capturedAt === undefined ? copy.rollbackBody : new Date(checkpoint.capturedAt).toLocaleString(numberLocale)}
{checkpoint.status === 'empty' ? copy.emptySlot : copy.availableSlot}
{checkpoint.status === 'empty' ? null : <>
{checkpoint.pluginCount === undefined ? null : }{checkpoint.totalBytes === undefined ? null : }
} id={checkpoint.slotId}>{copy.openCheckpoint}} id={checkpoint.slotId} variant="default">{copy.rollbackCheckpoint}}
+ return
{state.locale === 'zh' ? `槽位 ${slotNumber}` : `Slot ${slotNumber}`}{checkpoint.status === 'empty' ? copy.noHealthyStartup : checkpoint.capturedAt === undefined ? copy.rollbackBody : new Date(checkpoint.capturedAt).toLocaleString(numberLocale)}
{checkpoint.status === 'empty' ? copy.emptySlot : copy.availableSlot}
{checkpoint.status === 'empty' ? null : <>
{checkpoint.pluginCount === undefined ? null : }{checkpoint.totalBytes === undefined ? null : }
} id={checkpoint.slotId}>{copy.openCheckpoint}} id={checkpoint.slotId} variant="default">{copy.rollbackCheckpoint}}
})}
} function ProfilesPanel({ copy, state }: { readonly copy: DesktopRecoveryCopy; readonly state: RecoveryState }): JSX.Element { diff --git a/dsh-plugin-desktop/src/recovery-copy.ts b/dsh-plugin-desktop/src/recovery-copy.ts index 2527f75a05..559e9550cd 100644 --- a/dsh-plugin-desktop/src/recovery-copy.ts +++ b/dsh-plugin-desktop/src/recovery-copy.ts @@ -62,8 +62,6 @@ export interface DesktopRecoveryCopy { readonly openCheckpoint: string readonly rollbackCheckpoint: string readonly desktopVersion: string - readonly checkpointSource: string - readonly automaticCheckpoint: string readonly pluginCount: string readonly configurationFileCount: string readonly checkpointSize: string @@ -141,8 +139,6 @@ const COPY: Record = { openCheckpoint: 'Browse files', rollbackCheckpoint: 'Roll back to this slot', desktopVersion: 'DSH Desktop version', - checkpointSource: 'Created by', - automaticCheckpoint: 'DSH Desktop healthy-start check', pluginCount: 'Plugins', configurationFileCount: 'Configuration files', checkpointSize: 'Checkpoint size', @@ -218,8 +214,6 @@ const COPY: Record = { openCheckpoint: '浏览文件', rollbackCheckpoint: '回滚到此槽位', desktopVersion: 'DSH Desktop 版本', - checkpointSource: '创建方式', - automaticCheckpoint: 'DSH Desktop 健康启动检查', pluginCount: '插件', configurationFileCount: '配置文件', checkpointSize: 'Checkpoint 大小',