Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
arsnova-click-v2-frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
12
Merge Requests
12
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
arsnova-click-v2-frontend
Commits
69f7282a
Commit
69f7282a
authored
Nov 29, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes reset of the quiz for attendee data
parent
ac9c3667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/app/service/attendee/attendee.service.ts
src/app/service/attendee/attendee.service.ts
+6
-2
No files found.
src/app/service/attendee/attendee.service.ts
View file @
69f7282a
...
...
@@ -5,7 +5,6 @@ import { MemberEntity } from '../../lib/entities/member/MemberEntity';
import
{
StorageKey
}
from
'
../../lib/enums/enums
'
;
import
{
QuizState
}
from
'
../../lib/enums/QuizState
'
;
import
{
IMemberSerialized
}
from
'
../../lib/interfaces/entities/Member/IMemberSerialized
'
;
import
{
IQuizResponse
}
from
'
../../lib/interfaces/quizzes/IQuizResponse
'
;
import
{
MemberApiService
}
from
'
../api/member/member-api.service
'
;
import
{
QuizService
}
from
'
../quiz/quiz.service
'
;
import
{
StorageService
}
from
'
../storage/storage.service
'
;
...
...
@@ -78,7 +77,12 @@ export class AttendeeService {
public
clearResponses
():
void
{
this
.
_attendees
.
forEach
((
attendee
)
=>
{
attendee
.
responses
.
splice
(
0
,
attendee
.
responses
.
length
,
{}
as
IQuizResponse
);
attendee
.
responses
.
forEach
(
response
=>
{
response
.
confidence
=
-
1
;
response
.
readingConfirmation
=
false
;
response
.
responseTime
=
-
1
;
response
.
value
=
[];
});
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment