Skip to content
Snippets Groups Projects
Commit abd18d86 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

restrict tag length to 50 characters (test)

parent a4392a6e
No related merge requests found
...@@ -45,3 +45,8 @@ mat-form-field { ...@@ -45,3 +45,8 @@ mat-form-field {
background-color: var(--alt-dialog); background-color: var(--alt-dialog);
} }
} }
mat-hint {
color: var(--on-surface) !important;
margin-right: 1%;
}
...@@ -19,7 +19,7 @@ export class TagsComponent implements OnInit { ...@@ -19,7 +19,7 @@ export class TagsComponent implements OnInit {
tags: string[]; tags: string[];
tagsEnabled: boolean; tagsEnabled: boolean;
tagFormControl = new FormControl('', [Validators.minLength(3), Validators.maxLength(20)]); tagFormControl = new FormControl('', [Validators.minLength(3), Validators.maxLength(50)]);
@ViewChild('tag') redel: ElementRef; @ViewChild('tag') redel: ElementRef;
constructor(public dialogRef: MatDialogRef<RoomCreatorPageComponent>, constructor(public dialogRef: MatDialogRef<RoomCreatorPageComponent>,
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
"settings-direct-send": "Fragen sofort sichtbar", "settings-direct-send": "Fragen sofort sichtbar",
"sure": "Bist du sicher?", "sure": "Bist du sicher?",
"tag-new": "Neue Fragenkategorie:", "tag-new": "Neue Fragenkategorie:",
"tag-error": "Muss zwischen 3 und 20 Zeichen lang sein", "tag-error": "Muss zwischen 3 und 50 Zeichen lang sein",
"tags": "Tags", "tags": "Tags",
"threshold": "Schwellenwert", "threshold": "Schwellenwert",
"update": "Speichern", "update": "Speichern",
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
"settings-direct-send": "Questions instantly visible", "settings-direct-send": "Questions instantly visible",
"sure": "Are you sure?", "sure": "Are you sure?",
"tag-new": "New question tag:", "tag-new": "New question tag:",
"tag-error": "Must be between 3 and 20 characters long", "tag-error": "Must be between 3 and 50 characters long",
"tags": "Tags", "tags": "Tags",
"threshold": "Threshold", "threshold": "Threshold",
"update": "Save", "update": "Save",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment