mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-12 16:44:46 +08:00
This commit modifies the composer buttons along the bottom, removing the old "Close" button in favour of a distinct "Discard" and a persistent "X" button. For **Discard**: * When there is any user-input content in the composer, clicking this button will bring up the draft confirmation modal. Users can then confirm the discard, decide to save their draft, or return to the editor. * When there is no user-input content in the composer, clicking this button will close the composer. * In this case, we should not prompt users with the draft confirmation modal. For the **"X"** button in the top-right of the composer on desktop and mobile: * When there is any user-input content in the composer, this should save the content as a draft and close the composer. We don’t need to bring up the draft confirmation in this case. * When there is no user-input content in the composer, this should close the composer without saving. Remove the Close button from the composer on desktop. |
||
|---|---|---|
| .. | ||
| discourse | ||
| .gitkeep | ||