-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCAL-222310 : Host Event Client #75
Conversation
620fd42
to
75303a0
Compare
797b124
to
f07c5fc
Compare
commit: |
if (hostEvent === HostEvent.Pin && payload?.newVizName) { | ||
return this.handleUiPassthroughForHostEvent( | ||
iFrame, UiPassthroughEvent.addVizToPinboard, payload, | ||
); | ||
} | ||
if (hostEvent === HostEvent.SaveAnswer && payload?.name) { | ||
const data = await this.handleUiPassthroughForHostEvent( | ||
iFrame, UiPassthroughEvent.saveAnswer, payload, | ||
); | ||
return { | ||
...data, | ||
answerId: data?.saveResponse?.data?.Answer__save?.answer?.id, | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make this part more generic, so that it wouldn't be too hard when extending to new hostEvents
return { ...response.value }; | ||
} | ||
|
||
public async hostEventFallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this up beside the executeUiPassthroughApi, to keep similar methods together and name them more similar with different intentions. eg executePassthroughEvent and executeHostEvent
…xnpm run lint -- --fix
2db1147
to
922bcd3
Compare
No description provided.