MOBILE-3833 forum: Do not display empty card on response posts if none
parent
9624105319
commit
2ece8e7e7e
|
@ -92,7 +92,7 @@
|
||||||
</addon-mod-forum-post>
|
</addon-mod-forum-post>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-card *ngIf="sort != 'nested'">
|
<ion-card *ngIf="sort != 'nested' && posts.length">
|
||||||
<ng-container *ngFor="let post of posts; first as first">
|
<ng-container *ngFor="let post of posts; first as first">
|
||||||
<core-spacer *ngIf="!first"></core-spacer>
|
<core-spacer *ngIf="!first"></core-spacer>
|
||||||
<addon-mod-forum-post [post]="post" [courseId]="courseId" [discussionId]="discussionId" [component]="component"
|
<addon-mod-forum-post [post]="post" [courseId]="courseId" [discussionId]="discussionId" [component]="component"
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ion-card>
|
</ion-card>
|
||||||
|
|
||||||
<ng-container *ngIf="sort == 'nested'">
|
<ng-container *ngIf="sort == 'nested' && posts.length">
|
||||||
<ng-container *ngFor="let post of posts">
|
<ng-container *ngFor="let post of posts">
|
||||||
<ng-container *ngTemplateOutlet="nestedPosts; context: {post: post}"></ng-container>
|
<ng-container *ngTemplateOutlet="nestedPosts; context: {post: post}"></ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -75,7 +75,7 @@ export class AddonModForumDiscussionPage implements OnInit, AfterViewInit, OnDes
|
||||||
discussion?: AddonModForumDiscussion;
|
discussion?: AddonModForumDiscussion;
|
||||||
discussions?: AddonModForumDiscussionDiscussionsSwipeManager;
|
discussions?: AddonModForumDiscussionDiscussionsSwipeManager;
|
||||||
startingPost?: Post;
|
startingPost?: Post;
|
||||||
posts!: Post[];
|
posts: Post[] = [];
|
||||||
discussionLoaded = false;
|
discussionLoaded = false;
|
||||||
postSubjects!: { [id: string]: string };
|
postSubjects!: { [id: string]: string };
|
||||||
isOnline!: boolean;
|
isOnline!: boolean;
|
||||||
|
|
Loading…
Reference in New Issue