Refined-github: Display confirmation box when closing an issue with a comment

Created on 10 Jan 2021  路  7Comments  路  Source: sindresorhus/refined-github

Useful to avoid accidentally closing issues.

Should be applied for all issue pages: https://github.com/*/*/issues/*

Should be triggered when clicking this button:

Close with comment

enhancement under discussion

Most helpful comment

Given the non-destructiveness of the action I don't think it's worth messing with that. That button already has enough logic behind it (and more is coming with #3881)

All 7 comments

Don't we already put the close button on the other side to avoid this issue?

@fregante Sorry for the ambiguity, I actually meant this button:

Close with comment

Sorry I had completely misunderstood. I thought "Closing a tab before submitting a comment"

Should be triggered when clicking this button:

Close with comment

I did this accidentally a few times, but I don't know if I'd find the confirmation less annoying than just reopening the issue 馃

Don't we already put the close button on the other side to avoid this issue?

Yes: https://github.com/sindresorhus/refined-github/blob/382b398cbaccbb5a3f7135cf873f1302daf5901e/source/features/safer-destructive-actions.css

Perhaps, instead, there should be a 2-second countdown that allows you to immediately cancel the action.

Given the non-destructiveness of the action I don't think it's worth messing with that. That button already has enough logic behind it (and more is coming with #3881)

Was this page helpful?
0 / 5 - 0 ratings