Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Open external URLs on openUrl event - Closes #787 #788

Merged
merged 6 commits into from
Oct 2, 2017

Conversation

reyraa
Copy link
Contributor

@reyraa reyraa commented Sep 28, 2017

The change in this PR add a listener to openUrl event transmitted from main process.

How to test:

  • run npm run build && npm run start
  • Create links to different routes of our React app, they should activate the electron app and navigate to that particular link.
    • lisk://main/voting/send : should open the send modal in voting tab
    • lisk://main/wrong-tab : should show a toaster informing about wrong URL
    • lisk://main/voting/wrong-dialog : open voting tab without any modals
    • lisk://register : should open the register modal in login page
      and so on.

Closes #787

@reyraa reyraa self-assigned this Sep 28, 2017
@reyraa reyraa changed the title Open external URLs on openUrl event - Closes #787 Open external URLs on openUrl event - Closes #20, #787 Sep 29, 2017
yasharAyari
yasharAyari previously approved these changes Sep 29, 2017
Copy link
Contributor

@yasharAyari yasharAyari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did a great job. thank you.

@reyraa reyraa changed the title Open external URLs on openUrl event - Closes #20, #787 Open external URLs on openUrl event - Closes #787 Sep 29, 2017
@reyraa
Copy link
Contributor Author

reyraa commented Sep 29, 2017

I'd like to tweak this PR to ensure links won't break the routing. Also I'll add an alert message to inform user about the URL invalidity.

Copy link
Contributor

@alepop alepop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Copy link
Contributor

@yasharAyari yasharAyari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job

Copy link
Contributor

@slaweet slaweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @reyraa

@reyraa reyraa merged commit 45c7b71 into development Oct 2, 2017
@reyraa reyraa deleted the 787-open-url-listener branch October 2, 2017 08:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants