discourse/app
Roman Rizzi fbb1fb9270
FIX: Ensure slow mode duration is correctly edited and displayed. (#10945)
* FIX: Ensure slow mode duration is correctly edited and displayed.

This commit fixes a bug where you were forced to set hours, minutes, and seconds or you won't be able to set the slow mode. Also, the duration was not displayed correctly due to the seconds not being truncated.

Additionally, we'll always display the hours, minutes, and seconds inputs for clarity and remove the blue banner.

* Set slow mode modal tweaks.

Uses labels instead of placeholders.
Input fields only visible when custom option selected.
Replace "Custom Duration" with "Pick Duration".

Additionally, place the `Set slow mode` button at the bottom of the topic actions menu.

* Perform the slow_mode validation also on the client-side before saving trying to save the post. This way, the post won't be staged.
2020-10-20 06:52:03 -03:00
..
assets FIX: Ensure slow mode duration is correctly edited and displayed. (#10945) 2020-10-20 06:52:03 -03:00
controllers FIX: moderators can add/remove group owners (#10960) 2020-10-19 16:30:21 -04:00
helpers Replace base_uri with base_path (#10879) 2020-10-09 12:51:24 +01:00
jobs DEV: Remove gifsicle dependency (#10357) 2020-10-16 13:41:27 +03:00
mailers FIX: When admin changes an email for the user the user must confirm the change (#10830) 2020-10-07 13:02:24 +10:00
models DEV: Introduce plugin API to contribute user api key scopes 2020-10-19 10:40:55 +01:00
serializers FEATURE: Topic slow mode. (#10904) 2020-10-16 16:24:38 -03:00
services REFACTOR: Removes double check of site setting in badge granter 2020-10-05 19:59:57 +02:00
views Revert "FEATURE: Upgrade analytics.js to gtag.js (#10893)" (#10910) 2020-10-13 12:20:41 -05:00