MOBILE-3787 assign: Always show submission status
parent
9b93a0450c
commit
59e1a4fcf5
|
@ -211,14 +211,9 @@ export class AddonModAssignSubmissionsSource extends CoreRoutedItemsManagerSourc
|
|||
submission.gradingstatus,
|
||||
);
|
||||
|
||||
// Show submission status if not submitted for grading.
|
||||
if (submission.statusColor != 'success' || !submission.gradingstatus) {
|
||||
submission.statusTranslated = Translate.instant(
|
||||
'addon.mod_assign.submissionstatus_' + submission.status,
|
||||
);
|
||||
} else {
|
||||
submission.statusTranslated = '';
|
||||
}
|
||||
|
||||
if (notSynced) {
|
||||
submission.gradingStatusTranslationId = 'addon.mod_assign.gradenotsynced';
|
||||
|
|
|
@ -302,7 +302,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
|
|||
}
|
||||
}
|
||||
|
||||
this.needsGradingAvailable = (submissionStatus.gradingsummary?.submissionsneedgradingcount || 0) > 0;
|
||||
this.needsGradingAvailable = this.summary.submissionsneedgradingcount > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -63,14 +63,16 @@
|
|||
{{ 'addon.mod_assign.defaultteam' | translate }}
|
||||
</span>
|
||||
</p>
|
||||
<ion-badge class="ion-text-center ion-text-wrap" [color]="submission.statusColor"
|
||||
*ngIf="submission.statusTranslated">
|
||||
<p *ngIf="submission.statusTranslated">
|
||||
<ion-badge class="ion-text-center ion-text-wrap" [color]="submission.statusColor">
|
||||
{{ submission.statusTranslated }}
|
||||
</ion-badge>
|
||||
<ion-badge class="ion-text-center ion-text-wrap" [color]="submission.gradingColor"
|
||||
*ngIf="submission.gradingStatusTranslationId">
|
||||
</p>
|
||||
<p *ngIf="submission.gradingStatusTranslationId">
|
||||
<ion-badge class="ion-text-center ion-text-wrap" [color]="submission.gradingColor">
|
||||
{{ submission.gradingStatusTranslationId | translate }}
|
||||
</ion-badge>
|
||||
</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ng-container>
|
||||
|
|
Loading…
Reference in New Issue