fix display of vote stacks detailed

This commit is contained in:
Tykayn 2021-06-10 12:48:46 +02:00 committed by tykayn
parent adc7c255d8
commit 075d434c6f
2 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,8 @@ import { ToastService } from '../../core/services/toast.service';
styleUrls: ['./consultation.component.scss'],
})
export class ConsultationComponent implements OnInit, OnDestroy {
public isCompactMode = false;
// public isCompactMode = false;
public isCompactMode = true;
public poll: Poll;
public pollSlug: string;
public pass_hash: string;

View File

@ -7,7 +7,6 @@
<th *ngFor="let choice of poll.choices">
<!-- {{choice.id}}-->
<span class="label" *ngIf="poll.kind == 'text'">
{{ choice.id }}
{{ choice.name }}
</span>
<span class="label" *ngIf="poll.kind == 'date'">
@ -54,8 +53,7 @@
</div>
</td>
<ng-container *ngFor="let vote of stack.votes">
<td *ngIf="vote.value" class="stack-vote background-{{ vote.value }}">
{{ vote.choice_id }})
<td class="stack-vote background-{{ vote.value }}">
{{ vote.value }}
</td>
</ng-container>