-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Move LauncherView to App.js #1047
Conversation
6c321f8
to
19c8df2
Compare
onClose={(): void => { | ||
setConcurrentKonnector(undefined) | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call | ||
launcherEvent.emit('launchResult', { cancel: true }) |
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.
I'm not sure to understand this one. How do we distinguish this launchResult
from the one that would be emited by the "already running" connector?
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.
Actually, there is no distinction. The current account/konnector opened in harvest will receive this message. And since the current opened connector is the one which caused to open the "already running" connector, this is the one we want to cancel.
5e9989d
to
0af81fa
Compare
This is needed to allow mespapiers app to control clisk konnectors. Also needed to convert launcher context to a global context to allow it to be used in multiple places (CozyWebView, App)
When running a second clisk konnector, the dialog preventing the second run is displayed. But the FlowProvider in harvest will keep its running state, blocking the user to do anything else. Now we cancel this running state (since no second konnector is actually running).
0af81fa
to
d5afa34
Compare
This is needed to allow mespapiers app to control clisk konnectors.
Also needed to convert launcher context to a global context to allow it
to be used in multiple places (CozyWebView, App)
Checklist
Before merging this PR, the following things must have been done: