Show file path if local file.

This commit is contained in:
SergeantPanda 2025-05-03 19:28:36 -05:00
parent c89c962374
commit 4030c8d774
2 changed files with 19 additions and 14 deletions

View file

@ -104,13 +104,13 @@ const EPGsTable = () => {
minSize: 100,
},
{
header: 'URL / API Key',
header: 'URL / API Key / File Path',
accessorKey: 'url',
size: 200,
minSize: 120,
enableSorting: false,
Cell: ({ cell, row }) => {
const value = cell.getValue() || row.original.api_key || '';
const value = cell.getValue() || row.original.api_key || row.original.file_path || '';
return (
<Tooltip label={value} disabled={!value}>
<div

View file

@ -107,18 +107,23 @@ const M3UTable = () => {
accessorKey: 'server_url',
size: 200,
minSize: 120,
Cell: ({ cell }) => (
<div
style={{
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
maxWidth: '100%',
}}
>
{cell.getValue()}
</div>
),
Cell: ({ cell, row }) => {
const value = cell.getValue() || row.original.file_path || '';
return (
<Tooltip label={value} disabled={!value}>
<div
style={{
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
maxWidth: '100%',
}}
>
{value}
</div>
</Tooltip>
);
},
},
{
header: 'Max Streams',