fix: NCWF-2 bugs and desing fixes (#7)
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
@@ -61,4 +61,18 @@ export class ChallengeEventService {
|
||||
removeChallenge(challengeId: string): void {
|
||||
this.onChallengeRemoved(challengeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace the full incoming list (used by HTTP polling)
|
||||
*/
|
||||
setIncomingChallenges(challenges: Challenge[]): void {
|
||||
this.incomingChallenges$.next(challenges);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all incoming challenges (used on logout)
|
||||
*/
|
||||
clear(): void {
|
||||
this.incomingChallenges$.next([]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user