Skip to content

Commit

Permalink
NAS-132805: Hide "take snapshot" for TrueCloud backup (#11127)
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft authored Dec 3, 2024
1 parent f07cd08 commit 1478fb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@
class="fieldset"
[title]="helptext.fieldset_advanced_options| translate"
>
<ix-checkbox
formControlName="snapshot"
[label]="helptext.snapshot_placeholder | translate"
[tooltip]="helptext.snapshot_tooltip | translate"
></ix-checkbox>
<ix-textarea
formControlName="pre_script"
[label]="helptext.pre_script_placeholder | translate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ describe('CloudBackupFormComponent', () => {
minute: '0',
month: '*',
},
snapshot: false,
transfer_setting: CloudsyncTransferSetting.Default,
}]);
expect(chainedComponentRef.close).toHaveBeenCalledWith({ response: existingTask, error: null });
Expand All @@ -185,7 +184,6 @@ describe('CloudBackupFormComponent', () => {
Folder: '/',
Enabled: false,
Bucket: 'bucket1',
'Take Snapshot': true,
Exclude: ['/test'],
'Transfer Setting': 'Fast Storage',
});
Expand Down Expand Up @@ -213,7 +211,6 @@ describe('CloudBackupFormComponent', () => {
minute: '0',
month: '*',
},
snapshot: true,
transfer_setting: CloudsyncTransferSetting.FastStorage,
}]);
expect(chainedComponentRef.close).toHaveBeenCalledWith({ response: existingTask, error: null });
Expand Down Expand Up @@ -248,7 +245,6 @@ describe('CloudBackupFormComponent', () => {
'Pre-script': '',
Schedule: 'Weekly (0 0 * * sun)  On Sundays at 00:00 (12:00 AM)',
'Source Path': '/mnt/my pool',
'Take Snapshot': false,
'Transfer Setting': 'Performance',
});
});
Expand Down Expand Up @@ -288,7 +284,6 @@ describe('CloudBackupFormComponent', () => {
minute: '0',
month: '*',
},
snapshot: false,
transfer_setting: CloudsyncTransferSetting.Performance,
}]);
expect(chainedComponentRef.close).toHaveBeenCalledWith({ response: existingTask, error: null });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ export class CloudBackupFormComponent implements OnInit {
delete (value as unknown as FormValue)[key];
});

delete value.snapshot;

return value;
}

Expand Down

0 comments on commit 1478fb8

Please sign in to comment.