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