Skip to content

Commit

Permalink
Fix rendering bugs in feedback report
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Dec 12, 2024
1 parent aeb902b commit 3622fb1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<small><span class="font-weight-bold align-middle">{{template?.helpText}}</span></small>
</div>

<ng-container *ngIf="!submission.whenFinalized; else finalized">
<ng-container *ngIf="!submission.whenFinalized && !isAdminView; else finalized">
<div *ngFor="let q of submission.responses; let i = index" class="mb-4">
<label for="{{q.id}}">
<div class="d-flex">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,3 @@
</ng-template>
<ng-template #noValue>--</ng-template>
<ng-template #loading><app-spinner>Loading player feedback...</app-spinner></ng-template>

<ng-template #playerResponsesModal let-context>
{{ context | json }}
<!-- <app-modal-content title="Feedback" [subtitle]="context.user.name">
<app-feedback-submission-form [templateId]="ctx.parameters.templateId"
[feedbackEntity]="context.entity"></app-feedback-submission-form>
</app-modal-content> -->
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@ export class FeedbackReportComponent extends ReportComponentBase<FeedbackReportP
};

protected handleRecordClick(record: FeedbackReportRecord) {
if (this.playerResponsesModalTemplate) {
this.modalService.openComponent({
content: PlayerFeedbackResponsesModalComponent,
context: {
record,
templateId: this.ctx.parameters.templateId
}
});
}
this.modalService.openComponent({
content: PlayerFeedbackResponsesModalComponent,
context: {
record,
templateId: this.ctx.parameters.templateId
}
});
}

protected async updateView(parameters: FeedbackReportParameters): Promise<ReportViewUpdate> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<app-modal-content *ngIf="record" title="Feedback" [subtitle]="record.user.name">
<app-modal-content *ngIf="record" title="Feedback" [subtitle]="record.user.name" [hideCancel]="true">
<app-feedback-submission-form [templateId]="templateId" [isAdminView]="true"
[feedbackEntity]="record.entity"></app-feedback-submission-form>
</app-modal-content>

0 comments on commit 3622fb1

Please sign in to comment.