This commit is contained in:
FrancescoMolinaro
2023-12-14 16:30:29 +01:00
parent 90ad316db4
commit 8e4408f118

View File

@@ -124,7 +124,7 @@ export class LdnServiceFormComponent implements OnInit, OnDestroy {
if (this.serviceId && !this.isNewForm) { if (this.serviceId && !this.isNewForm) {
this.fetchServiceData(this.serviceId); this.fetchServiceData(this.serviceId);
} }
}) });
this.setItemfilters(); this.setItemfilters();
} }
@@ -649,10 +649,11 @@ export class LdnServiceFormComponent implements OnInit, OnDestroy {
pattern: '', pattern: '',
patternLabel: this.translateService.instant(this.selectPatternDefaultLabeli18Key), patternLabel: this.translateService.instant(this.selectPatternDefaultLabeli18Key),
constraint: '', constraint: '',
} isNew: true
};
if(!this.isNewForm) { if (this.isNewForm) {
outBoundFormGroup['isNew'] = true; delete outBoundFormGroup.isNew;
} }
return this.formBuilder.group(outBoundFormGroup); return this.formBuilder.group(outBoundFormGroup);
@@ -668,10 +669,11 @@ export class LdnServiceFormComponent implements OnInit, OnDestroy {
patternLabel: this.translateService.instant(this.selectPatternDefaultLabeli18Key), patternLabel: this.translateService.instant(this.selectPatternDefaultLabeli18Key),
constraint: '', constraint: '',
automatic: false, automatic: false,
} isNew: true
};
if(!this.isNewForm) { if (this.isNewForm) {
inBoundFormGroup['isNew'] = true; delete inBoundFormGroup.isNew;
} }
return this.formBuilder.group(inBoundFormGroup); return this.formBuilder.group(inBoundFormGroup);