mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 04:11:12 +00:00
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>
This commit is contained in:
parent
d67b43a043
commit
ab51245ca5
2 changed files with 6 additions and 2 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit ee2cffac809ad466644f061ad79ac577b6c2e4fd
|
Subproject commit 3fe6ed1596f455a2c43d8f1717552002333dd084
|
|
@ -3,7 +3,7 @@ import classNames from "classnames";
|
||||||
import { Component, FormEventHandler, linkEvent } from "inferno";
|
import { Component, FormEventHandler, linkEvent } from "inferno";
|
||||||
import { EditSite, LocalSiteRateLimit } from "lemmy-js-client";
|
import { EditSite, LocalSiteRateLimit } from "lemmy-js-client";
|
||||||
import { I18NextService } from "../../services";
|
import { I18NextService } from "../../services";
|
||||||
import { Spinner } from "../common/icon";
|
import { Icon, Spinner } from "../common/icon";
|
||||||
import Tabs from "../common/tabs";
|
import Tabs from "../common/tabs";
|
||||||
|
|
||||||
const rateLimitTypes = [
|
const rateLimitTypes = [
|
||||||
|
@ -144,6 +144,10 @@ export default class RateLimitsForm extends Component<
|
||||||
<h1 className="h4 mb-4">
|
<h1 className="h4 mb-4">
|
||||||
{I18NextService.i18n.t("rate_limit_header")}
|
{I18NextService.i18n.t("rate_limit_header")}
|
||||||
</h1>
|
</h1>
|
||||||
|
<div className="alert small alert-info" role="alert">
|
||||||
|
<Icon icon="info" classes="icon-inline me-2" />
|
||||||
|
{I18NextService.i18n.t("rate_limit_info")}
|
||||||
|
</div>
|
||||||
<Tabs
|
<Tabs
|
||||||
tabs={rateLimitTypes.map(rateLimitType => ({
|
tabs={rateLimitTypes.map(rateLimitType => ({
|
||||||
key: rateLimitType,
|
key: rateLimitType,
|
||||||
|
|
Loading…
Reference in a new issue