Skip to content

Commit

Permalink
fix missing input
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-peruzzo committed Jan 6, 2025
1 parent ba22533 commit f7851c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/login/KcPageStory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,22 @@ export const decorators = (_: unknown, context: StoryContextLike) => ({
@Component({
selector: 'kc-page-story',
template: `@if (pageComponent) {
<kc-root [page]="pageComponent"></kc-root>
<kc-root
[page]="pageComponent"
[userProfileFormFields]="userProfileFormFieldsComponent"
></kc-root>
}`,
standalone: true,
imports: [TemplateComponent],
})
export class KcPageStory implements OnInit {
pageComponent: Type<unknown> | undefined;
kcContext = inject(KC_LOGIN_CONTEXT);
userProfileFormFieldsComponent: Type<unknown> | undefined;
ngOnInit() {
getKcPage(this.kcContext.pageId).then((kcPage) => {
this.pageComponent = kcPage.PageComponent;
this.userProfileFormFieldsComponent = kcPage.UserProfileFormFieldsComponent;
});
}
}

0 comments on commit f7851c3

Please sign in to comment.