mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix lint
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user