diff --git a/authority-portal-frontend/src/app/common/components/form-elements/text-input/text-input.component.ts b/authority-portal-frontend/src/app/common/components/form-elements/text-input/text-input.component.ts index ab9ba3cd6..4effe44fe 100644 --- a/authority-portal-frontend/src/app/common/components/form-elements/text-input/text-input.component.ts +++ b/authority-portal-frontend/src/app/common/components/form-elements/text-input/text-input.component.ts @@ -10,7 +10,6 @@ * Contributors: * sovity GmbH - initial implementation */ - import {Component, HostBinding, Input} from '@angular/core'; import {FormControl} from '@angular/forms'; @@ -43,4 +42,7 @@ export class TextInputComponent { @Input() invalidPatternMessage = 'Input does not fit pattern.'; + + @Input() + maxLengthMessage = 'Input exceeds maximum length.'; } diff --git a/authority-portal-frontend/src/app/pages/component-registration-pages/register-central-component-page/register-central-component-page/register-central-component-page-form.ts b/authority-portal-frontend/src/app/pages/component-registration-pages/register-central-component-page/register-central-component-page/register-central-component-page-form.ts index 05b0be2e7..773c6c5c1 100644 --- a/authority-portal-frontend/src/app/pages/component-registration-pages/register-central-component-page/register-central-component-page/register-central-component-page-form.ts +++ b/authority-portal-frontend/src/app/pages/component-registration-pages/register-central-component-page/register-central-component-page/register-central-component-page-form.ts @@ -57,11 +57,11 @@ export class RegisterCentralComponentPageForm { ], frontendUrl: [ initial.componentTab.frontendUrl, - [Validators.required, , Validators.maxLength(128), urlValidator], + [Validators.required, urlValidator, Validators.maxLength(128)], ], endpointUrl: [ initial.componentTab.endpointUrl, - [Validators.required, Validators.maxLength(128), urlValidator], + [Validators.required, urlValidator, Validators.maxLength(128)], ], });