refactoired statusPlaceholder getter
This commit is contained in:
parent
d410e9ed49
commit
b7fce7525d
@ -76,11 +76,11 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti
|
||||
get statusPlaceholder(): string {
|
||||
if (this.states.length === 0) {
|
||||
return this._translateService.instant('edit-dossier-dialog.general-info.form.dossier-status.no-status-placeholder');
|
||||
} else if (this.currentStatus) {
|
||||
return this.currentStatus.name;
|
||||
} else {
|
||||
return this._translateService.instant('edit-dossier-dialog.general-info.form.dossier-status.placeholder');
|
||||
}
|
||||
|
||||
return (
|
||||
this.currentStatus?.name ?? this._translateService.instant('edit-dossier-dialog.general-info.form.dossier-status.placeholder')
|
||||
);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user