From c365180afb8e702a83d6b1036d4acaeb82b41710 Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:21:57 +0200 Subject: [PATCH] field length error messages displayed (#323) --- .../add-new-item/add-new-item.component.html | 13 ++++++++++++- .../scenario/add-new-item/add-new-item.component.ts | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/app/scenario/add-new-item/add-new-item.component.html b/src/app/scenario/add-new-item/add-new-item.component.html index 9fd72b9c..2d026eaf 100644 --- a/src/app/scenario/add-new-item/add-new-item.component.html +++ b/src/app/scenario/add-new-item/add-new-item.component.html @@ -25,6 +25,8 @@ aria-describedby="inputGroup-sizing-default">

Environment is required.

+

Environment is too long. Max length is 100.

+
@@ -32,18 +34,27 @@ +
+

Note is too long. Max length is 200.

+
+
+

Note is too long. Max length is 150.

+
+
+

Hostname is too long. Max length is 200.

+
@@ -51,7 +62,7 @@
-

Link is too long. Max length is 350.

+

Link is too long. Max length is 350.

diff --git a/src/app/scenario/add-new-item/add-new-item.component.ts b/src/app/scenario/add-new-item/add-new-item.component.ts index eb9e040f..dcdb4a6f 100644 --- a/src/app/scenario/add-new-item/add-new-item.component.ts +++ b/src/app/scenario/add-new-item/add-new-item.component.ts @@ -54,7 +54,7 @@ export class AddNewItemComponent implements OnInit { this.monitoringFile = new FormControl("", []); this.environment = new FormControl("", [ Validators.required, - Validators.maxLength(150) + Validators.maxLength(100) ]); this.note = new FormControl("", [ Validators.maxLength(150)