Show assignment poll result table instad of chart
Replaces the assignment result chart with the result table from the detail view and projector
This commit is contained in:
parent
1ca3196a75
commit
3820e09b89
@ -56,15 +56,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Chart -->
|
||||
<div *ngIf="poll.stateHasVotes">
|
||||
<!-- Chart / Table -->
|
||||
<div *ngIf="poll.stateHasVotes" class="poll-result-wrapper">
|
||||
<div *osPerms="'assignments.can_manage'; or: poll.isPublished">
|
||||
<os-charts
|
||||
class="pointer"
|
||||
<os-assignment-poll-detail-content
|
||||
routerLink="/assignments/polls/{{ poll.id }}"
|
||||
[labels]="candidatesLabels"
|
||||
[data]="chartDataSubject | async"
|
||||
></os-charts>
|
||||
[poll]="poll"
|
||||
></os-assignment-poll-detail-content>
|
||||
</div>
|
||||
|
||||
<!-- Cannot see unpublished -->
|
||||
|
@ -11,6 +11,10 @@
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.poll-result-wrapper {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.poll-detail-button-wrapper {
|
||||
display: flex;
|
||||
margin: auto 0;
|
||||
|
Loading…
Reference in New Issue
Block a user