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

Feature/Alert Default ok button #428

Merged
merged 2 commits into from
Aug 30, 2021
Merged

Conversation

ShobhitAd
Copy link
Contributor

Fixes #297

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Core Tests

Send Alert RPC without softbuttons

Core branch tested against: develop
Proxy+Test App name tested against: RPC Builder

CLA

@@ -29,7 +29,19 @@ export default class AlertButtons extends React.Component {
var softButtons = this.props.alertButtons
var items;
if(!softButtons){
return (null)
let okButton = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should add msgID property so that a response will be sent by uiController.onDefaultAction:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's difficult to directly get the msgId in AlertButtons.js so I've moved the default ok button changes to Buttons.js in b333f1e

@ShobhitAd ShobhitAd merged commit 0cbb886 into develop Aug 30, 2021
@ShobhitAd ShobhitAd deleted the feature/alert_default_ok_button branch August 30, 2021 16:45
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