From 857063d2c7b57adf9fbeb00fcfe951d1769cf65d Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sun, 9 Mar 2025 19:17:59 +0000 Subject: [PATCH] feat: adding automatic cloud sync --- .../game-details/cloud-sync-modal/cloud-sync-modal.tsx | 7 ++++--- src/types/index.ts | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/pages/game-details/cloud-sync-modal/cloud-sync-modal.tsx b/src/renderer/src/pages/game-details/cloud-sync-modal/cloud-sync-modal.tsx index 64d7a0cf..80d495af 100644 --- a/src/renderer/src/pages/game-details/cloud-sync-modal/cloud-sync-modal.tsx +++ b/src/renderer/src/pages/game-details/cloud-sync-modal/cloud-sync-modal.tsx @@ -203,9 +203,10 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {

- {t("backup_from", { - date: format(artifact.createdAt, "dd/MM/yyyy"), - })} + {artifact.label ?? + t("backup_from", { + date: format(artifact.createdAt, "dd/MM/yyyy"), + })}

{formatBytes(artifact.artifactLengthInBytes)}
diff --git a/src/types/index.ts b/src/types/index.ts index a8726b6b..c40487bd 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -253,6 +253,7 @@ export interface GameArtifact { updatedAt: string; hostname: string; downloadCount: number; + label?: string; } export interface ComparedAchievements {