Skip to content

Commit b7088b6

Browse files
committed
MOBILE-3039 data: Don't display error when comments are disabled
1 parent 09b95db commit b7088b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addon/mod/data/pages/entry/entry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<core-rating-rate *ngIf="data && entry && ratingInfo && (!data.approval || entry.approved)" [ratingInfo]="ratingInfo" contextLevel="module" [instanceId]="data.coursemodule" [itemId]="entry.id" [itemSetId]="0" [courseId]="courseId" [aggregateMethod]="data.assessed" [scaleId]="data.scale" [userId]="entry.userid" (onLoading)="setLoadingRating($event)" (onUpdate)="ratingUpdated()"></core-rating-rate>
3232
<core-rating-aggregate *ngIf="data && entry && ratingInfo" [ratingInfo]="ratingInfo" contextLevel="module" [instanceId]="data.coursemodule" [itemId]="entry.id" [courseId]="courseId" [aggregateMethod]="data.assessed" [scaleId]="data.scale"></core-rating-aggregate>
3333

34-
<ion-item *ngIf="data && entry && entry.id > 0 && commentsEnabled">
34+
<ion-item *ngIf="data && data.comments && entry && entry.id > 0 && commentsEnabled">
3535
<core-comments contextLevel="module" [instanceId]="data.coursemodule" component="mod_data" [itemId]="entry.id" area="database_entry" [displaySpinner]="false" (onLoading)="setLoadingComments($event)"></core-comments>
3636
</ion-item>
3737

0 commit comments

Comments
 (0)