discourse/themes/horizon/javascripts
Martin Brennan 369cc65865
FEATURE: Better composer controls for "Save & close (X)" and "Discard" (#33510)
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.
2025-08-25 23:15:56 +10:00
..
discourse FEATURE: Better composer controls for "Save & close (X)" and "Discard" (#33510) 2025-08-25 23:15:56 +10:00
.gitkeep FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00