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

skip confirmation for closing composer when there's no text entered #680

Merged

Conversation

benharri
Copy link
Contributor

No description provided.

@benharri benharri force-pushed the skip-confirmation-for-empty-post branch 2 times, most recently from 3687f02 to 163c92c Compare May 16, 2023 20:27
@pfrazee
Copy link
Collaborator

pfrazee commented May 17, 2023

What about if they've attached images? Do we still want to fast exit?

@pfrazee pfrazee added the x:discussing We've seen the request and we're talking about it! label May 17, 2023
@benharri
Copy link
Contributor Author

This is something I noticed while debugging it - there's no prompt even with images attached when you click the normal cancel button.
The confirmation prompt only shows up when pressing escape.

I will poke around and see if I can get that behavior to be consistent for both.

@benharri benharri force-pushed the skip-confirmation-for-empty-post branch from 163c92c to 670bc7c Compare May 17, 2023 15:01
@benharri
Copy link
Contributor Author

Added the gallery check and moved the check for both esc and the actual cancel button

@benharri benharri force-pushed the skip-confirmation-for-empty-post branch 2 times, most recently from 8d9c251 to 8b9b8c1 Compare May 18, 2023 19:35
@pfrazee pfrazee added x:planned We're on it! and removed x:discussing We've seen the request and we're talking about it! labels May 19, 2023
@pfrazee
Copy link
Collaborator

pfrazee commented May 19, 2023

Appreciate the updates! Need to test then I'll merge

@benharri benharri force-pushed the skip-confirmation-for-empty-post branch 6 times, most recently from d570aaf to 115f8e1 Compare May 31, 2023 02:52
@benharri benharri force-pushed the skip-confirmation-for-empty-post branch 2 times, most recently from db3baa1 to b923865 Compare June 6, 2023 15:56
@benharri benharri force-pushed the skip-confirmation-for-empty-post branch from b923865 to ed35d9f Compare June 20, 2023 18:43
- prompt now appears for the cancel button
- no prompt when post is empty
- appease eslint
@benharri benharri force-pushed the skip-confirmation-for-empty-post branch from ed35d9f to 2e082b6 Compare June 26, 2023 20:28
@benharri
Copy link
Contributor Author

Oh nice, the linter stopped complaining with this rebase. This is good to go as far as I can tell.

@pfrazee pfrazee merged commit 0f94296 into bluesky-social:main Jun 27, 2023
@pfrazee
Copy link
Collaborator

pfrazee commented Jun 27, 2023

Made a couple of adjustments and merged. Thanks!

@benharri benharri deleted the skip-confirmation-for-empty-post branch June 27, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:planned We're on it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants