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/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
..
adapters DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
components REFACTOR: Remove position fixed from the header and use sticky instead (#10781) 2020-10-19 17:26:38 -04:00
controllers FIX: Ensure slow mode duration is correctly edited and displayed. (#10945) 2020-10-20 06:52:03 -03:00
helpers FIX: Ensure slow mode duration is correctly edited and displayed. (#10945) 2020-10-20 06:52:03 -03:00
initializers DEV: Make site setting type uploaded_image_list use upload IDs (#10401) 2020-10-13 16:17:06 +03:00
lib REFACTOR: Remove position fixed from the header and use sticky instead (#10781) 2020-10-19 17:26:38 -04:00
mixins Revert "FEATURE: CTRL-SHIFT-ENTER and SHIFT-Click do not scroll on post (#10939)" 2020-10-19 14:07:35 -04:00
models FEATURE: Topic slow mode. (#10904) 2020-10-16 16:24:38 -03:00
pre-initializers DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
raw-views DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
routes FEATURE: Topic slow mode. (#10904) 2020-10-16 16:24:38 -03:00
services FIX: Favicon count was not updated when window focus returned (#10875) 2020-10-09 10:51:39 +11:00
templates FIX: Ensure slow mode duration is correctly edited and displayed. (#10945) 2020-10-20 06:52:03 -03:00
widgets FIX: Ensure slow mode duration is correctly edited and displayed. (#10945) 2020-10-20 06:52:03 -03:00
app.js DEV: Add support for api-initializers to reduce boilerplate. 2020-09-30 16:05:44 -04:00
mapping-router.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00