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

Do not show delegate registration form for a delegate - Closes #946 #982

Merged
merged 2 commits into from
Nov 20, 2017

Conversation

joerodrig
Copy link
Contributor

@joerodrig joerodrig commented Nov 16, 2017

What was the problem?

An existing delegate was able to navigate directly to the register delegate dialog at /main/voting/register-delegate and view the delegate registration form.

How did I fix it?

An informational dialog is displayed stating that the user is already a delegate, and the registration form is no longer shown.

How to test it?

Review checklist

Solves LiskArchive#946.

Initially I attempted a redirect to the root page here so the modal
wouldn’t load if the user is a delegate. Due to the way this dialog is
opened though, that caused the dialog to quickly animate onto the page,
then disappear after the redirect was triggered. This is a quick
compromise for the UX.
Specs updated to

1) Confirm the InfoParagraph component is loaded when a delegate exists
2) Confirm that the delegate registration form isn’t rendered if the
account is already a delegate
@slaweet slaweet requested a review from ginacontrino November 16, 2017 17:58
@ginacontrino ginacontrino changed the base branch from development to 1.3.0 November 17, 2017 08:25
@reyraa reyraa changed the title #946 Do not show delegate registration form for a delegate Do not show delegate registration form for a delegate - Closes #946 Nov 20, 2017
Copy link
Contributor

@ginacontrino ginacontrino left a comment

Choose a reason for hiding this comment

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

Thank you for your changes! :) Good job

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