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

feat: re-add debug button/modal #1906

Merged
merged 2 commits into from Nov 9, 2019
Merged

feat: re-add debug button/modal #1906

merged 2 commits into from Nov 9, 2019

Conversation

pReya
Copy link
Contributor

@pReya pReya commented Oct 8, 2019

Fixes #1687

Changes proposed in this pull request:
Reintroduce the debug button in error modals, which was removed in 64686ef

Screenshot

Screenshot 2019-10-08 20 29 57

Confirmed

  • Frontend changes: tested on a local Flarum installation.

Required changes:
No tests or documentation changes needed (I guess?)

@dsevillamartin
Copy link
Member

I think, even though we didn't include it in the issue comments, that we also wanted to log the error (console.error the URL, params (?), and response) so it can be viewed in the console after the error as well, and after the error message is dismissed.

I didn't look at your implementation, but is it basically the same as how it was before?

@pReya
Copy link
Contributor Author

pReya commented Oct 9, 2019

Yes, it is exactly the same old implementation – no code changes. I will take a look into the console debug output next week and update this PR accordingly.

Copy link
Member

@dsevillamartin dsevillamartin left a comment

Choose a reason for hiding this comment

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

I fixed the alert dismission not working. This looks good to me, I may make a few further changes but those were not detailed in the issue.

@dsevillamartin dsevillamartin merged commit 54c5c09 into flarum:master Nov 9, 2019
@pReya pReya deleted the ms/re-add-debug-button branch November 10, 2019 13:32
@luceos luceos modified the milestone: 0.1.0-beta.11 Nov 11, 2019
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.

Re-add debug button in AJAX errors
3 participants