diff --git a/apps/web-mzima-client/src/app/post/post-details/post-details.component.ts b/apps/web-mzima-client/src/app/post/post-details/post-details.component.ts index 0593bc20c6..09a5f6e04f 100644 --- a/apps/web-mzima-client/src/app/post/post-details/post-details.component.ts +++ b/apps/web-mzima-client/src/app/post/post-details/post-details.component.ts @@ -88,9 +88,15 @@ export class PostDetailsComponent extends BaseComponent implements OnChanges, On this.postId = Number(params['id']); } }); + + //map View if (this.postFromModal) { this.post = this.postFromModal; this.postChanged = false; + + //assign post id and get survey + this.postId = this.post.id; + this.getSurvey(); } else { this.dataSubscription = this.route.data.subscribe((data) => { this.post = data['post']; diff --git a/apps/web-mzima-client/src/app/shared/components/onboarding/onboarding.component.ts b/apps/web-mzima-client/src/app/shared/components/onboarding/onboarding.component.ts index 6224c4ab73..15af404e16 100644 --- a/apps/web-mzima-client/src/app/shared/components/onboarding/onboarding.component.ts +++ b/apps/web-mzima-client/src/app/shared/components/onboarding/onboarding.component.ts @@ -57,12 +57,12 @@ export class OnboardingComponent implements AfterViewInit { this.router.navigate(['/settings']); } - // if (this.onboardingSteps[data.order].dynamic) { - // setTimeout(() => { - // this.customTourService.updateHighlightedElements(); - // this.isHidden = false; - // }, 1000); - // } + if (this.onboardingSteps[data.order].dynamic) { + setTimeout(() => { + this.customTourService.updateHighlightedElements(); + this.isHidden = false; + }, 1000); + } }, }); @@ -97,15 +97,6 @@ export class OnboardingComponent implements AfterViewInit { next: () => this.initOnboarding(), }); - this.eventBusService.on(EventType.FeedPostsLoaded).subscribe({ - next: () => { - setTimeout(() => { - this.customTourService.updateHighlightedElements(); - this.isHidden = false; - }, 100); - }, - }); - this.sessionService.isFiltersVisible$.pipe(untilDestroyed(this)).subscribe({ next: (isFiltersVisible) => { setTimeout(() => { diff --git a/apps/web-mzima-client/src/assets/locales/en_GB.json b/apps/web-mzima-client/src/assets/locales/en_GB.json index dad8cb88af..995f511745 100644 --- a/apps/web-mzima-client/src/assets/locales/en_GB.json +++ b/apps/web-mzima-client/src/assets/locales/en_GB.json @@ -978,7 +978,7 @@ "locked_tooltip": "This post is being edited by someone else. Please try again later." }, - "post_not_authorized": "You are not authorized to perform this action on this post.", + "post_not_authorized": "You are not authorised to perform this action on this post.", "modify": { "intro": "Select survey:", "no_task_values": "There are currently no saved values for this task.", diff --git a/libs/sdk/src/lib/helpers/api.ts b/libs/sdk/src/lib/helpers/api.ts index 9e0c90187b..95810800f5 100644 --- a/libs/sdk/src/lib/helpers/api.ts +++ b/libs/sdk/src/lib/helpers/api.ts @@ -14,7 +14,8 @@ export const ONLY = { NAME_ID_COLOR: 'name,id,color', NAME_COLOR_PERMISSIONS: 'name,color,everyone_can_create,can_create', NAME_ID_DESCRIPTION: 'name,id,description', - NEEDED_POSTS_LIST_PROPERTIES: 'id,title,content,status,color,contact,locks,post_media,data_source_message_id,post_date', + NEEDED_POSTS_LIST_PROPERTIES: + 'id,title,content,author_realname,status,color,contact,locks,post_media,data_source_message_id,post_date', TAG_ID_PARENTID_PARENT_SLUG: 'tag,id,parent_id,parent,slug', TAG_ID_PARENTID_PARENT_SLUG_CHILDREN: 'tag,id,parent_id,parent,slug,children', TAG_ID_PARENTID_CHILDREN: 'tag,id,parent_id,children',