diff --git a/src/app/interfaces/cloud-sync-task.interface.ts b/src/app/interfaces/cloud-sync-task.interface.ts index f8363af1d61..324fd202cfd 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, });