MOBILE-3320 workshop: Display '-' if no assessment grade
parent
c2e82f7ad1
commit
247505f2ba
|
@ -70,7 +70,7 @@
|
||||||
<ion-item class="ion-text-wrap">
|
<ion-item class="ion-text-wrap">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2>{{ 'addon.mod_workshop.gradinggradecalculated' | translate }}</h2>
|
<h2>{{ 'addon.mod_workshop.gradinggradecalculated' | translate }}</h2>
|
||||||
<p>{{ assessment.gradinggrade }}</p>
|
<p>{{ gradingGrade }}</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item class="ion-text-wrap" *ngIf="access?.canoverridegrades">
|
<ion-item class="ion-text-wrap" *ngIf="access?.canoverridegrades">
|
||||||
|
|
|
@ -73,7 +73,8 @@ export class AddonModWorkshopAssessmentPage implements OnInit, OnDestroy, CanLea
|
||||||
|
|
||||||
weights: number[] = [];
|
weights: number[] = [];
|
||||||
evaluateByProfile?: CoreUserProfile;
|
evaluateByProfile?: CoreUserProfile;
|
||||||
evaluationGrades: CoreGradesMenuItem[] =[];
|
evaluationGrades: CoreGradesMenuItem[] = [];
|
||||||
|
gradingGrade?: string | number;
|
||||||
|
|
||||||
protected workshopId!: number;
|
protected workshopId!: number;
|
||||||
protected originalEvaluation: AddonModWorkshopAssessmentEvaluation = {
|
protected originalEvaluation: AddonModWorkshopAssessmentEvaluation = {
|
||||||
|
@ -193,6 +194,7 @@ export class AddonModWorkshopAssessmentPage implements OnInit, OnDestroy, CanLea
|
||||||
this.assessment = AddonModWorkshopHelper.realGradeValue(this.workshop, assessment);
|
this.assessment = AddonModWorkshopHelper.realGradeValue(this.workshop, assessment);
|
||||||
this.evaluate.text = this.assessment.feedbackreviewer || '';
|
this.evaluate.text = this.assessment.feedbackreviewer || '';
|
||||||
this.evaluate.weight = this.assessment.weight;
|
this.evaluate.weight = this.assessment.weight;
|
||||||
|
this.gradingGrade = this.assessment.gradinggrade ?? '-';
|
||||||
|
|
||||||
if (this.evaluating) {
|
if (this.evaluating) {
|
||||||
if (this.access.canallocate) {
|
if (this.access.canallocate) {
|
||||||
|
|
Loading…
Reference in New Issue