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'], styleUrls: ['./consultation.component.scss'],
}) })
export class ConsultationComponent implements OnInit, OnDestroy { export class ConsultationComponent implements OnInit, OnDestroy {
public isCompactMode = false; // public isCompactMode = false;
public isCompactMode = true;
public poll: Poll; public poll: Poll;
public pollSlug: string; public pollSlug: string;
public pass_hash: string; public pass_hash: string;

View File

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