From 4030c8d774a0e8718d0e7e5550d4a0a3270b047a Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 3 May 2025 19:28:36 -0500 Subject: [PATCH] Show file path if local file. --- frontend/src/components/tables/EPGsTable.jsx | 4 +-- frontend/src/components/tables/M3UsTable.jsx | 29 ++++++++++++-------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/tables/EPGsTable.jsx b/frontend/src/components/tables/EPGsTable.jsx index 3a80880e..73c9f50c 100644 --- a/frontend/src/components/tables/EPGsTable.jsx +++ b/frontend/src/components/tables/EPGsTable.jsx @@ -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 (
{ accessorKey: 'server_url', size: 200, minSize: 120, - Cell: ({ cell }) => ( -
- {cell.getValue()} -
- ), + Cell: ({ cell, row }) => { + const value = cell.getValue() || row.original.file_path || ''; + return ( + +
+ {value} +
+
+ ); + }, }, { header: 'Max Streams',