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/tests
Joe 06ae9229e8
UX: Skip length check on reply drafts (#17408)
We don't count quote characters as part of the reply length.

We don't save drafts if the reply length is less than the min_post_length site setting.

If you start a reply that only contains a bunch of quotes with the intent to continue later, you get no draft.

This PR fixes that.

Note that we still don't save drafts if the composer is completely empty or if you're composing a new topic. This only affects replies.

This PR only changes the behavior if the reply composer contains something regardless of whether that something is a quote or not and ignores the min_post_length site setting.
2022-07-10 13:54:40 +08:00
..
acceptance UX: Skip length check on reply drafts (#17408) 2022-07-10 13:54:40 +08:00
fixtures DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
helpers DEV: Allow hooks.beforeEach usage w/ component tests (#17360) 2022-07-07 09:57:38 +02:00
integration FIX: Inputs using focusout regressed in #17345 (#17389) 2022-07-08 13:00:33 +02:00
unit DEV: Silence one more test (#17375) 2022-07-08 09:15:09 +08:00
active-plugins.js.erb DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
core-tests.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
index.html DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
plugin-tests.js.erb DEV: Transpile all plugin js by default (#17175) 2022-06-21 22:07:10 +02:00
setup-tests.js DEV: Remove more legacy ember code (#17218) 2022-06-24 18:56:08 +02:00
test-boot-ember-cli.js DEV: Support qunit_disable_auto_start in ember CLI (#16358) 2022-04-02 21:15:50 +02:00
test-helpers-rails.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00