diff --git a/src/app/features/consultation/consultation.component.ts b/src/app/features/consultation/consultation.component.ts index 06e00045..87f56e41 100644 --- a/src/app/features/consultation/consultation.component.ts +++ b/src/app/features/consultation/consultation.component.ts @@ -14,7 +14,7 @@ import { Comment } from '../../core/models/comment.model'; styleUrls: ['./consultation.component.scss'], }) export class ConsultationComponent implements OnInit, OnDestroy { - public isCompactMode = false; + public isCompactMode = true; public poll: Poll; public pollSlug: string; public passHash: string; diff --git a/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html b/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html index aa79c202..313fd2ab 100644 --- a/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html +++ b/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html @@ -18,7 +18,7 @@
-
diff --git a/src/app/features/consultation/poll-results-compact/poll-results-compact.component.ts b/src/app/features/consultation/poll-results-compact/poll-results-compact.component.ts index e46d3763..4ae2df8e 100644 --- a/src/app/features/consultation/poll-results-compact/poll-results-compact.component.ts +++ b/src/app/features/consultation/poll-results-compact/poll-results-compact.component.ts @@ -22,8 +22,8 @@ export class PollResultsCompactComponent implements OnInit { console.log('this.poll', this.poll); } - public openModal(choice: Choice): void { - const config: MatDialogConfig = { data: choice }; + public openModal(poll: Poll, choice: Choice): void { + const config: MatDialogConfig = { data: choice }; this.modalService.openModal(ChoiceDetailsComponent, config); } } diff --git a/src/app/shared/components/choice-details/choice-details.component.html b/src/app/shared/components/choice-details/choice-details.component.html index 6774652e..197c2891 100644 --- a/src/app/shared/components/choice-details/choice-details.component.html +++ b/src/app/shared/components/choice-details/choice-details.component.html @@ -1,34 +1,32 @@
- +

Détail des réponses pour "{{ choice.name }}"

+
+
- + + + - - - - -
- - {{ choice.counts.get(answerEnum.YES) }} - ouipeut êtrenon
{{ user.pseudo }}
-
-
- - - - - - - - + + +
- - {{ choice.counts.get(answerEnum.MAYBE) }} -
{{ user.pseudo }} +
+ {{ people }} +
+
+
+ {{ people }} +
+
+
+ {{ people }} +
+
diff --git a/src/app/shared/components/choice-details/choice-details.component.ts b/src/app/shared/components/choice-details/choice-details.component.ts index 27b08b18..86692bd2 100644 --- a/src/app/shared/components/choice-details/choice-details.component.ts +++ b/src/app/shared/components/choice-details/choice-details.component.ts @@ -3,6 +3,7 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Answer } from '../../../core/enums/answer.enum'; import { Choice } from '../../../core/models/choice.model'; +import { Poll } from '../../../core/models/poll.model'; @Component({ selector: 'app-choice-details', @@ -14,7 +15,8 @@ export class ChoiceDetailsComponent implements OnInit { constructor( public dialogRef: MatDialogRef, - @Inject(MAT_DIALOG_DATA) public choice: Choice + @Inject(MAT_DIALOG_DATA) public choice: Choice, + @Inject(MAT_DIALOG_DATA) public poll: Poll ) {} ngOnInit(): void {}