forked from phoenix/litellm-mirror
ui show when key expires
This commit is contained in:
parent
c40f6f0437
commit
304a31ec8c
1 changed files with 10 additions and 0 deletions
|
@ -722,6 +722,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
|||
<TableRow>
|
||||
<TableHeaderCell>Key Alias</TableHeaderCell>
|
||||
<TableHeaderCell>Secret Key</TableHeaderCell>
|
||||
<TableHeaderCell>Expires</TableHeaderCell>
|
||||
<TableHeaderCell>Spend (USD)</TableHeaderCell>
|
||||
<TableHeaderCell>Budget (USD)</TableHeaderCell>
|
||||
<TableHeaderCell>Budget Reset</TableHeaderCell>
|
||||
|
@ -762,6 +763,15 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
|||
<TableCell>
|
||||
<Text>{item.key_name}</Text>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
{item.expires != null ? (
|
||||
<div>
|
||||
<p style={{ fontSize: '0.70rem' }}>{new Date(item.expires).toLocaleString()}</p>
|
||||
</div>
|
||||
) : (
|
||||
<p style={{ fontSize: '0.70rem' }}>Never</p>
|
||||
)}
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Text>
|
||||
{(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue