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

Textbox: confirm close if text was changed #5009

Merged
merged 3 commits into from
Jun 29, 2020
Merged

Conversation

kravets-levko
Copy link
Collaborator

@kravets-levko kravets-levko commented Jun 29, 2020

What type of PR is this? (check all applicable)

  • Feature

Description

When adding or editing a textbox it's very easy to accidentally close the dialog and lose all changes (by clicking outside of dialog). This PR solves this issue by showing a confirmation dialog when trying to close a textbox dialog with changes.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

image

@kravets-levko kravets-levko self-assigned this Jun 29, 2020
@kravets-levko kravets-levko force-pushed the textbox-confirm-close branch 2 times, most recently from a4d8353 to 79c2277 Compare June 29, 2020 13:39
@kravets-levko kravets-levko force-pushed the textbox-confirm-close branch from 79c2277 to 898a002 Compare June 29, 2020 13:41
Copy link
Member

@gabrieldutra gabrieldutra left a comment

Choose a reason for hiding this comment

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

A few texting suggestions. LMK your opinion.

I'd also consider a "Quit editing?" -> "Changes you made so far will not be saved" as it seems less "impactful".

client/app/components/dashboards/TextboxDialog.jsx Outdated Show resolved Hide resolved
client/app/components/dashboards/TextboxDialog.jsx Outdated Show resolved Hide resolved
@kravets-levko
Copy link
Collaborator Author

Thank you @gabrieldutra! I'm not good in texting 😅

image

Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
@kravets-levko kravets-levko merged commit a83cb18 into master Jun 29, 2020
@kravets-levko kravets-levko deleted the textbox-confirm-close branch June 29, 2020 16:30
andrewdever pushed a commit to andrewdever/redash that referenced this pull request Oct 5, 2020
* Textbox: confirm close if text was changed

* Update texting (with @gabrieldutra)

* Update texting

Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>

Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
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.

2 participants