discourse/test/javascripts
jbrw 09a97363da
FIX: allow editing in composer before a category is selected (#10724)
* FIX: allow editing in composer before a category is selected

If the site setting `allow_uncategorized_topics` is disabled, but no site categories have a topic template, the textarea of the composer should be enabled. This allows for a post body to be entered, however the post/topic should not be successfully created until a category is selected.

If `allow_uncategorized_topics` is disabled *and* one or more categories have a topic template, the textarea of the composer should remain disabled until a category is chosen (so that the body of their post isn’t overwritten by the template).

* Avoid recalculating hasTopicTemplates repeatedly
2020-09-23 10:28:56 -04:00
..
acceptance FIX: allow editing in composer before a category is selected (#10724) 2020-09-23 10:28:56 -04:00
admin DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
components DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
controllers DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
ember DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
fixtures FIX: allow editing in composer before a category is selected (#10724) 2020-09-23 10:28:56 -04:00
helpers DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
initializers DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
lib DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
mixins DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
models DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
services DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
utils DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
widgets DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin_tests.js.erb FIX: Allow plugins to provide test directories with transpiled .js 2020-06-16 14:31:01 -04:00
test_helper.js DEV: Throw an error instead of a string. 2020-08-28 11:40:16 +08:00