From ab51245ca5acf8476a12e18fe8a62cf8bc1c74d1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 20 Jul 2024 21:20:12 -0400 Subject: [PATCH] Add rate limit info message. (#2563) * Updating translations. * Adding a rate limit info message. - Fixes #1920 --------- Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> --- lemmy-translations | 2 +- src/shared/components/home/rate-limit-form.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lemmy-translations b/lemmy-translations index ee2cffac..3fe6ed15 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit ee2cffac809ad466644f061ad79ac577b6c2e4fd +Subproject commit 3fe6ed1596f455a2c43d8f1717552002333dd084 diff --git a/src/shared/components/home/rate-limit-form.tsx b/src/shared/components/home/rate-limit-form.tsx index 21b3364b..bef1440a 100644 --- a/src/shared/components/home/rate-limit-form.tsx +++ b/src/shared/components/home/rate-limit-form.tsx @@ -3,7 +3,7 @@ import classNames from "classnames"; import { Component, FormEventHandler, linkEvent } from "inferno"; import { EditSite, LocalSiteRateLimit } from "lemmy-js-client"; import { I18NextService } from "../../services"; -import { Spinner } from "../common/icon"; +import { Icon, Spinner } from "../common/icon"; import Tabs from "../common/tabs"; const rateLimitTypes = [ @@ -144,6 +144,10 @@ export default class RateLimitsForm extends Component<

{I18NextService.i18n.t("rate_limit_header")}

+
+ + {I18NextService.i18n.t("rate_limit_info")} +
({ key: rateLimitType,