diff --git a/src/app/core/models/poll.model.ts b/src/app/core/models/poll.model.ts index 59c18a49..e1bf0a6d 100644 --- a/src/app/core/models/poll.model.ts +++ b/src/app/core/models/poll.model.ts @@ -18,6 +18,7 @@ export class Poll { public configuration: PollConfiguration = new PollConfiguration(), public comments: Comment[] = [], public choices: Choice[] = [], + public votes = [], public dateChoices: Choice[] = [], // sets of days as strings, config to set identical time for days in a special days poll public timeChoices: Choice[] = [] // ranges of time expressed as strings ) {} diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index 2fd3560b..d0611c04 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -161,11 +161,11 @@ export class PollService implements Resolve { public buildAnswersByChoiceLabelByPseudo(poll: Poll): Map> { const pseudos: Set = new Set(); poll.votes.forEach((choice: Choice) => { - choice.voters.forEach((users: Set) => { - users.forEach((user: User) => { - pseudos.add(user.pseudo); - }); - }); + // choice.voters.forEach((users: Set) => { + // users.forEach((user: User) => { + // pseudos.add(user.pseudo); + // }); + // }); }); const list = new Map>(); diff --git a/src/app/features/consultation/consultation.component.html b/src/app/features/consultation/consultation.component.html index 115f12b3..f34b1f5b 100644 --- a/src/app/features/consultation/consultation.component.html +++ b/src/app/features/consultation/consultation.component.html @@ -1,8 +1,3 @@ -
-
-

Consultation de {{ pollSlug }}

-
-
@@ -13,19 +8,20 @@
-

{{ poll.title }}

+

{{ poll.title }}

- +
-

{{ poll.description }}

+

{{ poll.description }}

+