Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Stop Import/Create account if no network #341

Merged
merged 4 commits into from
Oct 24, 2017
Merged

Stop Import/Create account if no network #341

merged 4 commits into from
Oct 24, 2017

Conversation

alexbarnsley
Copy link
Member

This fixes an issue with not being connected to a network, when importing or creating an account it just does nothing with no feedback at all. I've implemented a toast notification when clicking "Import Account" or "Create Account" - see below. Feel free to test the before and after of not being connected to a network to see the issue I'm referring to.

image

@fix
Copy link

fix commented Oct 14, 2017

well the thing it SHOULD be possible to create/import account while offline.

That is because this function fails https://github.com/alexbarnsley/ark-desktop/blob/c46e25d162f5e2cc1dd37bd3084a4c1d286b4524/client/app/src/accounts/account.service.js#L158 if not connected.

Maybe add a fail function where the account is still created/imported

or here fails gradefully (ie deferred.resolve) if no network https://github.com/alexbarnsley/ark-desktop/blob/c46e25d162f5e2cc1dd37bd3084a4c1d286b4524/client/app/src/accounts/account.service.js#L83

@alexbarnsley
Copy link
Member Author

Sounds good to me @fix, I'll make the amends :)

@alexbarnsley
Copy link
Member Author

alexbarnsley commented Oct 14, 2017

@fix I've made a change so now it adds an "empty" account if the getFromPeer request fails. Please could you give it another test, thanks!

Edit: I've also removed the original code from this PR

@luciorubeens luciorubeens merged commit 3ccf90f into ArkEcosystem:master Oct 24, 2017
@luciorubeens
Copy link
Contributor

Nice! 👍🏻 +5

alexbarnsley added a commit that referenced this pull request Dec 3, 2018
* fix: add check for sending enabled on wallet
* test: fix failing tests with missing mixin
* fix: disable vote button if send disabled
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants