Merge branch 'RED-7649' into 'master'
RED-7649: Removed character limits on fields. See merge request redactmanager/red-ui!127
This commit is contained in:
commit
59723cc7d1
@ -114,8 +114,8 @@ export class AddEditCloneDossierTemplateDialogComponent extends BaseDialogCompon
|
||||
|
||||
#getForm() {
|
||||
return this._formBuilder.group({
|
||||
name: [this.#getCloneName(), [Validators.required, Validators.maxLength(255)]],
|
||||
description: [this.dossierTemplate?.description, Validators.maxLength(4000)],
|
||||
name: [this.#getCloneName(), Validators.required],
|
||||
description: [this.dossierTemplate?.description],
|
||||
validFrom: [
|
||||
this.dossierTemplate?.validFrom ? dayjs(this.dossierTemplate?.validFrom).toDate() : null,
|
||||
this.#requiredIfValidator(() => this.hasValidFrom),
|
||||
|
||||
@ -42,12 +42,9 @@ export class AddEditJustificationDialogComponent extends BaseDialogComponent {
|
||||
|
||||
private _getForm(): UntypedFormGroup {
|
||||
return this._formBuilder.group({
|
||||
name: [
|
||||
{ value: this.data.justification?.name, disabled: !!this.data.justification },
|
||||
[Validators.required, Validators.maxLength(255)],
|
||||
],
|
||||
reason: [this.data.justification?.reason, [Validators.required, Validators.maxLength(4000)]],
|
||||
description: [this.data.justification?.description, [Validators.required, Validators.maxLength(4000)]],
|
||||
name: [{ value: this.data.justification?.name, disabled: !!this.data.justification }, Validators.required],
|
||||
reason: [this.data.justification?.reason, Validators.required],
|
||||
description: [this.data.justification?.description, Validators.required],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Component, inject, OnInit } from '@angular/core';
|
||||
import { FormBuilder, FormControl, Validators } from '@angular/forms';
|
||||
import { FormBuilder, FormControl } from '@angular/forms';
|
||||
import { DetailsRadioOption, IconButtonTypes, IqserDialogComponent } from '@iqser/common-ui';
|
||||
import { Dictionary, SuperTypes } from '@red/domain';
|
||||
import { ActiveDossiersService } from '@services/dossiers/active-dossiers.service';
|
||||
@ -126,7 +126,7 @@ export class EditRedactionDialogComponent
|
||||
const sameSection = this.data.annotations.every(annotation => annotation.section === this.data.annotations[0].section);
|
||||
return this._formBuilder.group({
|
||||
reason: new FormControl<LegalBasisOption>(null),
|
||||
comment: new FormControl<string>(null, Validators.maxLength(4000)),
|
||||
comment: new FormControl<string>(null),
|
||||
type: new FormControl<string>(sameType ? this.data.annotations[0].type : null),
|
||||
section: new FormControl<string>(sameSection ? this.data.annotations[0].section : null),
|
||||
option: new FormControl<LegalBasisOption>(null),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user