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