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
12a4be70
Verified
Commit
12a4be70
authored
7 years ago
by
Lukas Mauß
Committed by
Lukas Maximilian Kimpel
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adjust room list so that the getRooms() distinguishes between participant and creator
parent
e2d1936f
1 merge request
!87
participant home screen api
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/room-list/room-list.component.ts
+2
-1
2 additions, 1 deletion
src/app/room-list/room-list.component.ts
src/app/room.service.ts
+12
-1
12 additions, 1 deletion
src/app/room.service.ts
with
14 additions
and
2 deletions
src/app/room-list/room-list.component.ts
+
2
−
1
View file @
12a4be70
...
...
@@ -17,7 +17,8 @@ export class RoomListComponent implements OnInit {
constructor
(
private
roomService
:
RoomService
,
protected
authenticationService
:
AuthenticationService
)
{}
protected
authenticationService
:
AuthenticationService
)
{
}
ngOnInit
()
{
this
.
getRooms
();
...
...
This diff is collapsed.
Click to expand it.
src/app/room.service.ts
+
12
−
1
View file @
12a4be70
...
...
@@ -21,7 +21,7 @@ export class RoomService extends ErrorHandlingService {
super
();
}
getRooms
():
Observable
<
Room
[]
>
{
get
Creator
Rooms
():
Observable
<
Room
[]
>
{
const
url
=
this
.
apiBaseUrl
+
this
.
roomsUrl
+
this
.
findRoomsUrl
;
return
this
.
http
.
post
<
Room
[]
>
(
url
,
{
properties
:
{
ownerId
:
this
.
authService
.
getUser
().
userId
},
...
...
@@ -32,6 +32,17 @@ export class RoomService extends ErrorHandlingService {
);
}
getParticipantRooms
():
Observable
<
Room
[]
>
{
const
url
=
this
.
apiBaseUrl
+
this
.
roomsUrl
+
this
.
findRoomsUrl
;
return
this
.
http
.
post
<
Room
[]
>
(
url
,
{
properties
:
{},
externalFilters
:
{
inHistoryOfUserId
:
this
.
authService
.
getUser
().
userId
}
}).
pipe
(
tap
(
_
=>
''
),
catchError
(
this
.
handleError
(
'
getRooms
'
,
[]))
);
}
addRoom
(
room
:
Room
):
Observable
<
Room
>
{
const
connectionUrl
=
this
.
apiBaseUrl
+
this
.
roomsUrl
+
'
/
'
;
return
this
.
http
.
post
<
Room
>
(
connectionUrl
,
{
...
...
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