Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
0ec69149
Commit
0ec69149
authored
6 years ago
by
Lukas Mauß
Committed by
Tom Käsler
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check max-length of session-input
parent
67880746
1 merge request
!141
Resolve "Session ID input field enhancement"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/shared/room-join/room-join.component.html
+1
-1
1 addition, 1 deletion
src/app/components/shared/room-join/room-join.component.html
src/app/components/shared/room-join/room-join.component.ts
+1
-1
1 addition, 1 deletion
src/app/components/shared/room-join/room-join.component.ts
with
2 additions
and
2 deletions
src/app/components/shared/room-join/room-join.component.html
+
1
−
1
View file @
0ec69149
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<form
(ngSubmit)=
"joinRoom(roomId.value)"
>
<form
(ngSubmit)=
"joinRoom(roomId.value)"
>
<div
fxLayout=
"row"
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<div
fxLayout=
"row"
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<mat-form-field>
<mat-form-field>
<input
matInput
#roomId
type=
"number"
placeholder=
"Session-Id"
[formControl]=
"roomFormControl"
<input
matInput
#roomId
type=
"number"
onkeydown=
"if(this.value.length === 8) return false;"
placeholder=
"Session-Id"
[formControl]=
"roomFormControl"
[errorStateMatcher]=
"matcher"
/>
[errorStateMatcher]=
"matcher"
/>
<mat-hint
align=
"end"
>
{{roomId.value.split(' ').join(' ').length}} / 8
</mat-hint>
<mat-hint
align=
"end"
>
{{roomId.value.split(' ').join(' ').length}} / 8
</mat-hint>
<mat-error
*ngIf=
"roomFormControl.hasError('required')"
>
{{ 'home-page.please-enter' | translate}}
</mat-error>
<mat-error
*ngIf=
"roomFormControl.hasError('required')"
>
{{ 'home-page.please-enter' | translate}}
</mat-error>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/shared/room-join/room-join.component.ts
+
1
−
1
View file @
0ec69149
...
@@ -29,7 +29,7 @@ export class RoomJoinComponent implements OnInit {
...
@@ -29,7 +29,7 @@ export class RoomJoinComponent implements OnInit {
room
:
Room
;
room
:
Room
;
demoId
=
'
95680586
'
;
demoId
=
'
95680586
'
;
user
:
User
;
user
:
User
;
roomFormControl
=
new
FormControl
(
''
,
[
Validators
.
required
,
Validators
.
minLength
(
8
),
Validators
.
maxLength
(
8
)]);
roomFormControl
=
new
FormControl
(
''
,
[
Validators
.
required
,
Validators
.
minLength
(
8
),
Validators
.
maxLength
(
8
)]);
matcher
=
new
RegisterErrorStateMatcher
();
matcher
=
new
RegisterErrorStateMatcher
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment