diff --git a/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.spec.ts b/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.spec.ts index 7ee3bfc9060..4e44c8d385f 100644 --- a/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.spec.ts +++ b/src/app/pages/data-protection/cloud-backup/cloud-backup-form/cloud-backup-form.component.spec.ts @@ -130,7 +130,8 @@ describe('CloudBackupFormComponent', () => { expect(spectator.inject(WebSocketService).call).toHaveBeenLastCalledWith('cloud_backup.create', [{ args: '', - attributes: { folder: '/' }, + attributes: { folder: '/', bucket: 'path_to_bucket1' }, + bwlimit: undefined, credentials: 2, description: 'New Cloud Backup Task', enabled: true, @@ -218,6 +219,7 @@ describe('CloudBackupFormComponent', () => { args: '', attributes: { folder: '/My Folder', + bucket: 'path_to_bucket1', }, bwlimit: undefined, credentials: 2, 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 18117f99ff4..c3afe439280 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 @@ -218,6 +218,7 @@ export class CloudBackupFormComponent implements OnInit { path: [], credentials: (this.editingTask.credentials as CloudCredential).id, folder: this.editingTask.attributes.folder as string, + bucket: this.editingTask.attributes.bucket === newOption ? '' : this.editingTask.attributes.bucket as string || '', }); if (this.editingTask.include?.length) { @@ -263,6 +264,7 @@ export class CloudBackupFormComponent implements OnInit { private prepareData(formValue: FormValue): CloudBackupUpdate { const attributes: CloudBackupUpdate['attributes'] = { folder: formValue.folder, + bucket: formValue.bucket, }; const value: CloudBackupUpdate = {