From bbc6a9c87b2c1da6f309973ae2090a90d67b324c Mon Sep 17 00:00:00 2001 From: Stavros Kois Date: Fri, 2 Jan 2026 14:37:11 +0200 Subject: [PATCH 1/2] refactor: update directory listing to use decrypted names if available --- src/app/interfaces/cloud-sync-task.interface.ts | 3 ++- .../cloud-backup-form/cloud-backup-form.component.ts | 2 +- .../cloudsync/cloudsync-form/cloudsync-form.component.ts | 2 +- .../cloudsync-what-and-when.component.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/interfaces/cloud-sync-task.interface.ts b/src/app/interfaces/cloud-sync-task.interface.ts index f8363af1d61..c7b36d4bc50 100644 --- a/src/app/interfaces/cloud-sync-task.interface.ts +++ b/src/app/interfaces/cloud-sync-task.interface.ts @@ -73,5 +73,6 @@ export interface CloudSyncListDirectoryParams { export interface CloudSyncDirectoryListing { Name: string; IsDir: boolean; - Decrypted: boolean; + // The decrypted name of the file or directory + Decrypted: string; } diff --git a/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.ts b/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.ts index fbeeb676184..e2c0359d98c 100644 --- a/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.ts +++ b/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.ts @@ -234,7 +234,7 @@ export class CloudBackupFormComponent implements OnInit { if (file.IsDir) { nodes.push({ path: `${data.attributes.folder}/${file.Name}`.replace(/\/+/g, '/'), - name: file.Name, + name: file.Decrypted ? file.Decrypted : file.Name, type: ExplorerNodeType.Directory, hasChildren: true, }); diff --git a/src/app/pages/data-protection/cloudsync/cloudsync-form/cloudsync-form.component.ts b/src/app/pages/data-protection/cloudsync/cloudsync-form/cloudsync-form.component.ts index e23d0f67986..78fa729a85a 100644 --- a/src/app/pages/data-protection/cloudsync/cloudsync-form/cloudsync-form.component.ts +++ b/src/app/pages/data-protection/cloudsync/cloudsync-form/cloudsync-form.component.ts @@ -510,7 +510,7 @@ export class CloudSyncFormComponent implements OnInit { if (file.IsDir) { nodes.push({ path: `${data.attributes.folder}/${file.Name}`.replace(/\/+/g, '/'), - name: file.Name, + name: file.Decrypted ? file.Decrypted : file.Name, type: ExplorerNodeType.Directory, hasChildren: true, }); diff --git a/src/app/pages/data-protection/cloudsync/cloudsync-wizard/steps/cloudsync-what-and-when/cloudsync-what-and-when.component.ts b/src/app/pages/data-protection/cloudsync/cloudsync-wizard/steps/cloudsync-what-and-when/cloudsync-what-and-when.component.ts index 7ab9335f1a8..1dd9307b090 100644 --- a/src/app/pages/data-protection/cloudsync/cloudsync-wizard/steps/cloudsync-what-and-when/cloudsync-what-and-when.component.ts +++ b/src/app/pages/data-protection/cloudsync/cloudsync-wizard/steps/cloudsync-what-and-when/cloudsync-what-and-when.component.ts @@ -564,7 +564,7 @@ export class CloudSyncWhatAndWhenComponent implements OnInit, OnChanges { if (file.IsDir) { nodes.push({ path: `${String(data.attributes.folder)}/${file.Name}`.replace(/\/+/g, '/'), - name: file.Name, + name: file.Decrypted ? file.Decrypted : file.Name, type: ExplorerNodeType.Directory, hasChildren: true, }); From 2381baa089524e762c0ebc9d9697678e2a27d65e Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:34:53 +0200 Subject: [PATCH 2/2] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/app/interfaces/cloud-sync-task.interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/interfaces/cloud-sync-task.interface.ts b/src/app/interfaces/cloud-sync-task.interface.ts index c7b36d4bc50..324fd202cfd 100644 --- a/src/app/interfaces/cloud-sync-task.interface.ts +++ b/src/app/interfaces/cloud-sync-task.interface.ts @@ -74,5 +74,5 @@ export interface CloudSyncDirectoryListing { Name: string; IsDir: boolean; // The decrypted name of the file or directory - Decrypted: string; + Decrypted?: string; }