namespace: string;
imageName: string;
snapName: string;
+ mirroring: string;
snapshotForm: CdFormGroup;
setSnapName(snapName: string) {
this.snapName = snapName;
- this.snapshotForm.get('snapshotName').setValue(snapName);
+ if (this.mirroring !== 'snapshot') {
+ this.snapshotForm.get('snapshotName').setValue(snapName);
+ } else {
+ this.snapshotForm.get('snapshotName').clearValidators();
+ }
}
/**