mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 23:24:29 +03:00
tweaks to offline state in admin viewers page
If stream is offline, hide current viewers statistic and viewers table. Also, change wording for describing max viewers.
This commit is contained in:
parent
d46d954a29
commit
7425e71d08
1 changed files with 10 additions and 8 deletions
|
@ -96,24 +96,26 @@ export default function ViewersOverTime() {
|
|||
return (
|
||||
<div>
|
||||
<Row gutter={[16, 16]} justify="space-around">
|
||||
{online && (
|
||||
<StatisticItem
|
||||
title="Current viewers"
|
||||
value={viewerCount.toString()}
|
||||
prefix={<UserOutlined />}
|
||||
/>
|
||||
)}
|
||||
<StatisticItem
|
||||
title="Current viewers"
|
||||
value={viewerCount.toString()}
|
||||
prefix={<UserOutlined />}
|
||||
/>
|
||||
<StatisticItem
|
||||
title="Peak viewers this session"
|
||||
title={online ? 'Max viewers this session' : 'Max viewers last session'}
|
||||
value={sessionPeakViewerCount.toString()}
|
||||
prefix={<UserOutlined />}
|
||||
/>
|
||||
<StatisticItem
|
||||
title="Peak viewers overall"
|
||||
title="All-time max viewers"
|
||||
value={overallPeakViewerCount.toString()}
|
||||
prefix={<UserOutlined />}
|
||||
/>
|
||||
</Row>
|
||||
<Chart title="Viewers" data={viewerInfo} color="#2087E2" unit="" />
|
||||
<Table dataSource={clients} columns={columns} rowKey={row => row.clientID} />
|
||||
{online && <Table dataSource={clients} columns={columns} rowKey={row => row.clientID} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue