Added changes for Issue 4044 (#4199)
* Added changes for fix 4044 * Fixed spacing issue --------- Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
@@ -71,6 +71,8 @@
|
|||||||
"Banned Users": "Banned Users",
|
"Banned Users": "Banned Users",
|
||||||
"IP Bans": "IP Bans",
|
"IP Bans": "IP Bans",
|
||||||
"Moderators": "Moderators",
|
"Moderators": "Moderators",
|
||||||
|
"Bring in moderators to help keep your chat in order": "Bring in moderators to help keep your chat in order.",
|
||||||
|
"Learn more about chat moderation here": "Learn more about chat moderation here.",
|
||||||
"Hardware Info": "Hardware Info",
|
"Hardware Info": "Hardware Info",
|
||||||
"Please wait": "Please wait",
|
"Please wait": "Please wait",
|
||||||
"No hardware details have been collected yet": "No hardware details have been collected yet.",
|
"No hardware details have been collected yet": "No hardware details have been collected yet.",
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import React, { useState, useEffect, useContext, ReactElement } from 'react';
|
import React, { useState, useEffect, useContext, ReactElement } from 'react';
|
||||||
import { Tabs } from 'antd';
|
import { Tabs } from 'antd';
|
||||||
import { useTranslation } from 'next-export-i18n';
|
import { useTranslation } from 'next-export-i18n';
|
||||||
|
import Link from 'antd/lib/typography/Link';
|
||||||
|
import Text from 'antd/lib/typography/Text';
|
||||||
import { ServerStatusContext } from '../../../utils/server-status-context';
|
import { ServerStatusContext } from '../../../utils/server-status-context';
|
||||||
import {
|
import {
|
||||||
CONNECTED_CLIENTS,
|
CONNECTED_CLIENTS,
|
||||||
@@ -117,7 +119,21 @@ export default function ChatUsers() {
|
|||||||
{t('Moderators')} ({moderators.length})
|
{t('Moderators')} ({moderators.length})
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
const moderatorTable = <UserTable data={moderators} />;
|
const moderatorTable = (
|
||||||
|
<>
|
||||||
|
<p>
|
||||||
|
<Text type="secondary"> {t('Bring in moderators to help keep your chat in order.')} </Text>
|
||||||
|
<Link
|
||||||
|
href="https://owncast.online/docs/chat/moderation/"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{t('Learn more about chat moderation here.')}
|
||||||
|
</Link>
|
||||||
|
</p>
|
||||||
|
<UserTable data={moderators} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
{ label: connectedUserTabTitle, key: '1', children: connectedUsers },
|
{ label: connectedUserTabTitle, key: '1', children: connectedUsers },
|
||||||
|
|||||||
Reference in New Issue
Block a user