discourse/test/javascripts
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
..
acceptance Support for custom messages and redirects when creating posts (#8434) 2019-11-29 09:30:54 -05:00
admin FEATURE: Overhaul of admin API key system (#8284) 2019-11-05 14:10:23 +00:00
components DEV: Add test for load-more (#8369) 2019-11-25 14:42:34 +02:00
controllers Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
ember DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
fixtures FEATURE: Pie chart option for poll results (#8352) 2019-11-25 11:51:01 -06:00
helpers Support for custom messages and redirects when creating posts (#8434) 2019-11-29 09:30:54 -05:00
initializers FEATURE: Load translation overrides without JS eval 2019-11-05 19:16:38 +01:00
lib Add tests for oneboxer.js.es6 (#8418) 2019-11-28 08:20:32 +10:00
mixins DEV: Import EmberObject rather than global variable (#8256) 2019-10-29 14:23:50 -05:00
models DEV: Don't allow Promise unless imported from "rsvp" 2019-11-20 15:24:59 -05:00
widgets Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
plugin_tests.js.erb Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
test_helper.js FIX: Failing tests 2019-11-13 15:34:30 -05:00