Merge pull request #1381 from albertgasset/MOBILE-2456
MOBILE-2456 forum: Fix core-format-text in posts
This commit is contained in:
		
						commit
						d22e013d0c
					
				| @ -31,13 +31,13 @@ | |||||||
|         </ion-card> |         </ion-card> | ||||||
| 
 | 
 | ||||||
|         <ion-card *ngIf="discussion" margin-bottom> |         <ion-card *ngIf="discussion" margin-bottom> | ||||||
|             <addon-mod-forum-post [post]="discussion" [courseId]="courseId" [discussionId]="discussionId" [component]="component" [componentId]="componentId" [replyData]="replyData" [originalData]="originalData" [defaultSubject]="defaultSubject" [forum]="forum" [trackPosts]="trackPosts" (onPostChange)="postListChanged()"></addon-mod-forum-post> |             <addon-mod-forum-post [post]="discussion" [courseId]="courseId" [discussionId]="discussionId" [component]="component" [componentId]="cmId" [replyData]="replyData" [originalData]="originalData" [defaultSubject]="defaultSubject" [forum]="forum" [trackPosts]="trackPosts" (onPostChange)="postListChanged()"></addon-mod-forum-post> | ||||||
|         </ion-card> |         </ion-card> | ||||||
| 
 | 
 | ||||||
|         <ion-card *ngIf="sort != 'nested'"> |         <ion-card *ngIf="sort != 'nested'"> | ||||||
|             <ng-container *ngFor="let post of posts; first as first"> |             <ng-container *ngFor="let post of posts; first as first"> | ||||||
|                 <ion-item-divider color="light" *ngIf="!first"></ion-item-divider> |                 <ion-item-divider color="light" *ngIf="!first"></ion-item-divider> | ||||||
|                 <addon-mod-forum-post [post]="post" [courseId]="courseId" [discussionId]="discussionId" [component]="component" [componentId]="componentId" [replyData]="replyData" [originalData]="originalData" [defaultSubject]="defaultSubject" [forum]="forum" [trackPosts]="trackPosts" (onPostChange)="postListChanged()"></addon-mod-forum-post> |                 <addon-mod-forum-post [post]="post" [courseId]="courseId" [discussionId]="discussionId" [component]="component" [componentId]="cmId" [replyData]="replyData" [originalData]="originalData" [defaultSubject]="defaultSubject" [forum]="forum" [trackPosts]="trackPosts" (onPostChange)="postListChanged()"></addon-mod-forum-post> | ||||||
|             </ng-container> |             </ng-container> | ||||||
|         </ion-card> |         </ion-card> | ||||||
| 
 | 
 | ||||||
| @ -49,7 +49,7 @@ | |||||||
| 
 | 
 | ||||||
|         <ng-template #nestedPosts let-post="post"> |         <ng-template #nestedPosts let-post="post"> | ||||||
|             <ion-card> |             <ion-card> | ||||||
|                 <addon-mod-forum-post [post]="post" [courseId]="courseId" [discussionId]="discussionId" [component]="component" [componentId]="componentId" [replyData]="replyData" [originalData]="originalData" [defaultSubject]="defaultSubject" [forum]="forum" [trackPosts]="trackPosts" (onPostChange)="postListChanged()"></addon-mod-forum-post> |                 <addon-mod-forum-post [post]="post" [courseId]="courseId" [discussionId]="discussionId" [component]="component" [componentId]="cmId" [replyData]="replyData" [originalData]="originalData" [defaultSubject]="defaultSubject" [forum]="forum" [trackPosts]="trackPosts" (onPostChange)="postListChanged()"></addon-mod-forum-post> | ||||||
|             </ion-card> |             </ion-card> | ||||||
|             <div padding-left *ngIf="post.children.length && post.children[0].subject"> |             <div padding-left *ngIf="post.children.length && post.children[0].subject"> | ||||||
|                 <ng-container *ngFor="let child of post.children"> |                 <ng-container *ngFor="let child of post.children"> | ||||||
|  | |||||||
| @ -69,8 +69,9 @@ export class AddonModForumDiscussionPage implements OnDestroy { | |||||||
|     refreshIcon = 'spinner'; |     refreshIcon = 'spinner'; | ||||||
|     syncIcon = 'spinner'; |     syncIcon = 'spinner'; | ||||||
|     discussionStr = ''; |     discussionStr = ''; | ||||||
|  |     component = AddonModForumProvider.COMPONENT; | ||||||
|  |     cmId: number; | ||||||
| 
 | 
 | ||||||
|     protected cmId: number; |  | ||||||
|     protected forumId: number; |     protected forumId: number; | ||||||
|     protected onlineObserver: any; |     protected onlineObserver: any; | ||||||
|     protected syncObserver: any; |     protected syncObserver: any; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user