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
49e5fa16
There was an error fetching the commit references. Please try again later.
Verified
Commit
49e5fa16
authored
7 years ago
by
Lukas Mauß
Committed by
Lukas Maximilian Kimpel
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change route to 'participant/room/:roomId' which shows the ParticipantRoomCompent
parent
e4aca90a
1 merge request
!57
Resolve "participant home screen - html template (room)"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/app-routing.module.ts
+7
-0
7 additions, 0 deletions
src/app/app-routing.module.ts
src/app/room-list/room-list.component.html
+1
-1
1 addition, 1 deletion
src/app/room-list/room-list.component.html
with
8 additions
and
1 deletion
src/app/app-routing.module.ts
+
7
−
0
View file @
49e5fa16
...
@@ -8,6 +8,7 @@ import { CreateCommentComponent } from './create-comment/create-comment.componen
...
@@ -8,6 +8,7 @@ import { CreateCommentComponent } from './create-comment/create-comment.componen
import
{
ParticipantHomeScreenComponent
}
from
'
./participant-home-screen/participant-home-screen.component
'
;
import
{
ParticipantHomeScreenComponent
}
from
'
./participant-home-screen/participant-home-screen.component
'
;
import
{
AuthenticationGuard
}
from
'
./authentication.guard
'
;
import
{
AuthenticationGuard
}
from
'
./authentication.guard
'
;
import
{
UserRole
}
from
'
./user-roles.enum
'
;
import
{
UserRole
}
from
'
./user-roles.enum
'
;
import
{
ParticipantRoomComponent
}
from
'
./participant-room/participant-room.component
'
;
const
routes
:
Routes
=
[
const
routes
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'
/home
'
,
pathMatch
:
'
full
'
},
{
path
:
''
,
redirectTo
:
'
/home
'
,
pathMatch
:
'
full
'
},
...
@@ -34,6 +35,12 @@ const routes: Routes = [
...
@@ -34,6 +35,12 @@ const routes: Routes = [
canActivate
:
[
AuthenticationGuard
],
canActivate
:
[
AuthenticationGuard
],
data
:
{
roles
:
[
UserRole
.
PARTICIPANT
]
}
data
:
{
roles
:
[
UserRole
.
PARTICIPANT
]
}
},
},
{
path
:
'
participant/room/:roomId
'
,
component
:
ParticipantRoomComponent
,
canActivate
:
[
AuthenticationGuard
],
data
:
{
roles
:
[
UserRole
.
PARTICIPANT
]
}
},
{
path
:
'
**
'
,
component
:
PageNotFoundComponent
}
{
path
:
'
**
'
,
component
:
PageNotFoundComponent
}
];
];
...
...
This diff is collapsed.
Click to expand it.
src/app/room-list/room-list.component.html
+
1
−
1
View file @
49e5fa16
<mat-list>
<mat-list>
<mat-list-item
*ngFor=
"let room of rooms"
>
<mat-list-item
*ngFor=
"let room of rooms"
>
<button
mat-button
routerLink=
"
/
room/{{room.id}}"
>
<button
mat-button
routerLink=
"room/{{room.id}}"
>
{{room.name}}
{{room.name}}
</button>
</button>
</mat-list-item>
</mat-list-item>
...
...
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