Merge pull request #5373 from tsiegleauq/assignment-poll-card-with-table

Show assignment poll result table instad of chart
This commit is contained in:
Emanuel Schütze 2020-05-14 19:36:43 +02:00 committed by GitHub
commit f694e2355d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -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 -->

View File

@ -11,6 +11,10 @@
right: 0;
}
.poll-result-wrapper {
cursor: pointer;
}
.poll-detail-button-wrapper {
display: flex;
margin: auto 0;