owner is mandatory
This commit is contained in:
parent
8ba00cdb23
commit
b426046ca1
@ -1,5 +1,5 @@
|
||||
<form [formGroup]="form">
|
||||
<div class="iqser-input-group w-300">
|
||||
<div class="iqser-input-group w-300 required">
|
||||
<mat-form-field floatLabel="always">
|
||||
<mat-label>{{ 'assign-dossier-owner.dialog.single-user' | translate }}</mat-label>
|
||||
<mat-select formControlName="owner">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit } from '@angular/core';
|
||||
import { UserService } from '@services/user.service';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||
import { DossiersService } from '@services/entity-services/dossiers.service';
|
||||
import { Dossier, IDossierRequest } from '@red/domain';
|
||||
import { AutoUnsubscribe } from '@iqser/common-ui';
|
||||
@ -146,10 +146,13 @@ export class EditDossierTeamComponent extends AutoUnsubscribe implements EditDos
|
||||
|
||||
private _loadData() {
|
||||
this.form = this._formBuilder.group({
|
||||
owner: {
|
||||
value: this.dossier?.ownerId,
|
||||
disabled: this.disabled,
|
||||
},
|
||||
owner: [
|
||||
{
|
||||
value: this.dossier?.ownerId,
|
||||
disabled: this.disabled,
|
||||
},
|
||||
Validators.required,
|
||||
],
|
||||
approvers: [[...this.dossier?.approverIds]],
|
||||
members: [[...this.dossier?.memberIds]],
|
||||
});
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 95644f59e4e32517d76e0bd9267805a88ebdd8d1
|
||||
Subproject commit f4e0445212824788d10cd81adc0bce484a8dbb02
|
||||
Loading…
x
Reference in New Issue
Block a user