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

Show error if creating a widget fails #2264

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

krschau
Copy link
Collaborator

@krschau krschau commented Feb 15, 2024

Summary of the pull request

If the user tries to add a widget but creating the widget fails, show an error instead of failing silently.

image

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

@krschau krschau changed the title Show error if there was an error creating a widget Show error if creating a widget fails Feb 15, 2024
<value>Dev Home encountered an error. The widget could not be created.</value>
<comment>Error that pops up in a message dialog when the user tries to pin a widget but the widget could not be created.</comment>
</data>
<data name="CloseButtonText" xml:space="preserve">
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the dialog would come with a close button and the button was set to the correct content?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not automatic, the ShowErrorMessageDialogAsync() method requires ButtonText. BUT, the (now) three places in the code all use "Close". Sounds like the best thing to do would be to make the button text optional with a default of "Close".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@krschau krschau merged commit cb67fe0 into main Feb 15, 2024
4 checks passed
@krschau krschau deleted the user/krschau/widget-creation-error branch February 21, 2024 17:59
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.

3 participants