Skip to content

Remove redundant / unreachable backup code buttons helpers#4875

Merged
aduth merged 1 commit intomainfrom
aduth-rm-backup-code-continue-bttn
Apr 5, 2021
Merged

Remove redundant / unreachable backup code buttons helpers#4875
aduth merged 1 commit intomainfrom
aduth-rm-backup-code-continue-bttn

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 5, 2021

Discovered as part of investigative work of #4869

Why: continue_bttn_class is only referenced on the depleted view, despite being a method defined on the BackupCodeCreatePresenter class. Since the create view itself hard-codes the same big, wide button as other backup code views, there is no variation of the classes between presenters and it can be removed.

Similarly, the text "Continue" is the same between the create and depleted views, despite using separate locale string keys. Instead, consolidate to the "forms.buttons.continue" and remove the helper method.

There's expected to be no visual or text changes as a result of these revisions.

**Why**: `continue_bttn_class` is only referenced on the depleted view, despite being a method defined on the BackupCodeCreatePresenter class. Since the create view itself hard-codes the same big, wide button as other backup code views, there is no variation of the classes between presenters and it can be removed.

Similarly, the text "Continue" is the same between the create and depleted views, despite using separate locale string keys. Instead, consolidate to the "forms.buttons.continue" and remove the helper method.
Copy link
Contributor

@mitchellhenke mitchellhenke left a comment

Choose a reason for hiding this comment

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

👏🏼 👏🏼 👏🏼 👏🏼

@aduth aduth merged commit fd7d3c6 into main Apr 5, 2021
@aduth aduth deleted the aduth-rm-backup-code-continue-bttn branch April 5, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants