mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 21:28:29 +03:00
Merge pull request #9 from Senney/owncast-40-sort-connected-time
Implement sorting by "Connected Time"
This commit is contained in:
commit
e70299de90
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ export default function ViewersOverTime() {
|
|||
dataIndex: "connectedAt",
|
||||
key: "connectedAt",
|
||||
render: (time) => formatDistanceToNow(new Date(time)),
|
||||
sorter: (a, b) => new Date(a.connectedAt).getTime() - new Date(b.connectedAt).getTime(),
|
||||
sortDirections: ["descend", "ascend"] as SortOrder[],
|
||||
},
|
||||
{
|
||||
title: "User Agent",
|
||||
|
|
Loading…
Reference in a new issue