{{/if}}
{{/d-modal-body}}
diff --git a/app/assets/javascripts/discourse/app/widgets/topic-admin-menu.js b/app/assets/javascripts/discourse/app/widgets/topic-admin-menu.js
index 0c7e3c4fe46..6d9447e0d15 100644
--- a/app/assets/javascripts/discourse/app/widgets/topic-admin-menu.js
+++ b/app/assets/javascripts/discourse/app/widgets/topic-admin-menu.js
@@ -164,14 +164,6 @@ export default createWidget("topic-admin-menu", {
});
}
- this.addActionButton({
- className: "topic-admin-slow-mode",
- buttonClass: "popup-menu-btn",
- action: "showTopicSlowModeUpdate",
- icon: "hourglass-end",
- label: "actions.slow_mode",
- });
-
if (topic.get("deleted") && details.get("can_recover")) {
this.addActionButton({
className: "topic-admin-recover",
@@ -278,6 +270,14 @@ export default createWidget("topic-admin-menu", {
});
}
+ this.addActionButton({
+ className: "topic-admin-slow-mode",
+ buttonClass: "popup-menu-btn",
+ action: "showTopicSlowModeUpdate",
+ icon: "hourglass-end",
+ label: "actions.slow_mode",
+ });
+
if (this.currentUser.get("staff")) {
this.addActionButton({
icon: "list",
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss
index f2c51704031..17a02f480bd 100644
--- a/app/assets/stylesheets/common/base/modal.scss
+++ b/app/assets/stylesheets/common/base/modal.scss
@@ -822,6 +822,6 @@
}
.input-small {
- width: 15%;
+ width: 10%;
}
}
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 96373937460..8fac38b924c 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1925,6 +1925,7 @@ en:
slow_mode:
title: "This topic is in slow mode."
body: "After submitting a post, you'll need to wait %{duration} before being able to post again."
+ error: "You recently posted on this topic, which is in slow mode. Please wait so other users can have their chance to participate."
admin_options_title: "Optional staff settings for this topic"
@@ -2320,19 +2321,18 @@ en:
title: "Slow Mode"
select: "Duration:"
description: "Users will have to wait to be able to post again."
- current: "Current duration is %{hours} hours, %{minutes} minutes, and %{seconds} seconds."
save: "Save"
remove: "Disable"
- hours: "Hours"
- minutes: "Minutes"
- seconds: "Seconds"
+ hours: "Hours:"
+ minutes: "Minutes:"
+ seconds: "Seconds:"
durations:
15_minutes: "15 Minutes"
1_hour: "1 Hour"
4_hours: "4 Hours"
1_day: "1 Day"
1_week: "1 Week"
- custom: "Pick Duration"
+ custom: "Custom Duration"
slow_mode_notice:
duration: "You need to wait %{duration} between posts in this topic"
topic_status_update:
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 786519aa456..af99227a883 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -340,7 +340,7 @@ en:
removed_direct_reply_full_quotes: "Automatically removed quote of whole previous post."
secure_upload_not_allowed_in_public_topic: "Sorry, the following secure upload(s) cannot be used in a public topic: %{upload_filenames}."
create_pm_on_existing_topic: "Sorry, you can't create a PM on an existing topic."
- slow_mode_enabled: "You recently posted on this topic, which is in slow mode. Please wait so other users can have their chance to participate."
+ slow_mode_enabled: "This topic is in slow mode."
just_posted_that: "is too similar to what you recently posted"
invalid_characters: "contains invalid characters"