This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
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
..
adapters DEV: Import set, setProperties, helper, and string functions (#8297) 2019-11-05 12:43:49 -06:00
components UX: show group full name even when title is same. (#8437) 2019-11-29 13:07:24 +05:30
controllers Support for custom messages and redirects when creating posts (#8434) 2019-11-29 09:30:54 -05:00
helpers DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00
initializers Facebook square icon has been deprciated for Facebook circle 2019-11-22 15:25:20 -05:00
lib FIX: Do not start the login flow when logging out from SSO/Authenticator (#8423) 2019-11-27 11:41:07 +00:00
mixins FIX: Replace this.get("foo") with this.foo to fix linting checks 2019-11-21 11:29:50 +00:00
models DEV: Client side routing for routes with tag and category context 2019-11-28 17:58:04 +00:00
pre-initializers DEV: Client side category routing changes 2019-11-26 13:52:14 +00:00
raw-views DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
routes DEV: Client side routing for routes with tag and category context 2019-11-28 17:58:04 +00:00
services DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
templates DEV: Remove buffered rendering from user directory 2019-11-26 15:48:43 -07:00
widgets FIX: adds data-topic-id to quick-access-item (#8430) 2019-11-28 11:27:36 +01:00
mapping-router.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00