Skip to content
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

fix(app): fix restore default values button behavior #15017

Merged
merged 2 commits into from
May 1, 2024

Conversation

koji
Copy link
Contributor

@koji koji commented Apr 25, 2024

Overview

currently restore default values button is tappable when tapping confirm values button.
This PR makes restore default values button is disabled during confirming values.

close RQA-2639

Test Plan

set up a RTP protocol, change a runtime parameter and tap confirm values.
then try to tap restore default values button and check that the restore default values modal doesn't show up.

Changelog

  • add disabled to secondary button in protocol setup parameters
  • add a test case for this

Review requests

Risk assessment

low

currently restore default values button is tappable when tapping confirm values button

close RQA-2639
@koji koji requested review from ncdiehl11 and jerader April 25, 2024 20:40
@koji koji marked this pull request as ready for review April 25, 2024 20:42
@koji koji requested a review from a team as a code owner April 25, 2024 20:42
@koji koji requested review from shlokamin and removed request for a team April 25, 2024 20:54
@@ -151,6 +151,7 @@ export function ProtocolSetupParameters({
secondaryButtonProps={{
buttonType: 'tertiaryLowLight',
buttonText: t('restore_defaults'),
disabled: isLoading || startSetup,
Copy link
Collaborator

Choose a reason for hiding this comment

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

random nit but line 138 could be a console.error and have a more descriptive log, such as "should not hit here, this is a bad param"

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm!

@koji koji merged commit b73b082 into edge May 1, 2024
24 checks passed
@koji koji deleted the fix_restore-value-button-when-tapping-confirm branch May 1, 2024 14:31
Carlos-fernandez pushed a commit that referenced this pull request May 20, 2024
* fix(app): fix restore default values button behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants