diff --git a/src/pages/Stream/Views/Explore/StaticLogTable.tsx b/src/pages/Stream/Views/Explore/StaticLogTable.tsx index 8f696d4a..f08ab9ca 100644 --- a/src/pages/Stream/Views/Explore/StaticLogTable.tsx +++ b/src/pages/Stream/Views/Explore/StaticLogTable.tsx @@ -121,7 +121,7 @@ const makeHeaderOpts = ( style={{ display: isFirstSelectedRow && isFirstColumn ? 'flex' : '', }}> - {isSecureHTTPContext ? : null} + {sanitizedValue}
@@ -149,9 +149,8 @@ const Table = (props: { primaryHeaderHeight: number }) => { }); const contextMenuRef = useRef(null); - const [{ orderedHeaders, disabledColumns, pageData, wrapDisabledColumns, rowNumber }, setLogsStore] = useLogsStore( - (store) => store.tableOpts, - ); + const [{ orderedHeaders, disabledColumns, pageData, wrapDisabledColumns, rowNumber, pinnedColumns }, setLogsStore] = + useLogsStore((store) => store.tableOpts); const [isSecureHTTPContext] = useAppStore((store) => store.isSecureHTTPContext); const [fieldTypeMap] = useStreamStore((store) => store.fieldTypeMap); const columns = useMemo( @@ -291,7 +290,7 @@ const Table = (props: { primaryHeaderHeight: number }) => { enableColumnPinning initialState={{ columnPinning: { - left: ['rowNumber'], + left: pinnedColumns, }, }} enableStickyHeader @@ -299,7 +298,7 @@ const Table = (props: { primaryHeaderHeight: number }) => { layoutMode="grid" state={{ columnPinning: { - left: ['rowNumber'], + left: pinnedColumns, }, columnVisibility, columnOrder: orderedHeaders, @@ -341,20 +340,24 @@ const Table = (props: { primaryHeaderHeight: number }) => { return null; })()} - { - copyJSON(); - closeContextMenu(); - }}> - Copy JSON - - { - copyUrl(); - closeContextMenu(); - }}> - Copy permalink - + {isSecureHTTPContext && ( + <> + { + copyJSON(); + closeContextMenu(); + }}> + Copy JSON + + { + copyUrl(); + closeContextMenu(); + }}> + Copy permalink + + + )}
)}