discourse/app
Robin Ward 7fee3c61de
Support for custom messages and redirects when creating posts (#8434)
* Support for custom messages and redirects when creating posts

When a post/topic is created Discourse serializes a `NewPostResult`
object. Normally this contains a status like `created_post` or
errors describing why the post could not be created.

There are times when a plugin might want to take the inputted post
and do something in the background. In this case, the plugin
can return a custom `message` and `route_to` attribute in the
`NewPostResult`.

If present, the message will be displayed in an alert, and when "Ok" is
clicked the user will be routed to the new URL.

* Destroy the draft in parallel
2019-11-29 09:30:54 -05:00
..
assets Support for custom messages and redirects when creating posts (#8434) 2019-11-29 09:30:54 -05:00
controllers FEATURE: Ability to add components to all themes (#8404) 2019-11-28 16:19:01 +11:00
helpers Revert "FEATURE: Normalize the service worker route (#8359)" 2019-11-20 14:10:17 -08:00
jobs FIX: Mark secure media upload insecure automatically if used for theme component (#8413) 2019-11-28 07:32:17 +10:00
mailers FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
models FEATURE: Ability to add components to all themes (#8404) 2019-11-28 16:19:01 +11:00
serializers Support for custom messages and redirects when creating posts (#8434) 2019-11-29 09:30:54 -05:00
services FIX: Mark secure media upload insecure automatically if used for theme component (#8413) 2019-11-28 07:32:17 +10:00
views FEATURE: improve email change workflow 2019-11-21 16:28:35 +11:00