Skip to content

Commit

Permalink
fix: line share HTTP secure condition removed (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 authored Jan 10, 2025
1 parent d3880b1 commit e204794
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src/pages/Stream/Views/Explore/StaticLogTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const makeHeaderOpts = (
style={{
display: isFirstSelectedRow && isFirstColumn ? 'flex' : '',
}}>
{isSecureHTTPContext ? <IconDotsVertical stroke={1.2} size={'0.8rem'} color="#545beb" /> : null}
<IconDotsVertical stroke={1.2} size={'0.8rem'} color="#545beb" />
</div>
{sanitizedValue}
<div className={tableStyles.copyIconContainer}>
Expand Down Expand Up @@ -149,9 +149,8 @@ const Table = (props: { primaryHeaderHeight: number }) => {
});

const contextMenuRef = useRef<HTMLDivElement>(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(
Expand Down Expand Up @@ -291,15 +290,15 @@ const Table = (props: { primaryHeaderHeight: number }) => {
enableColumnPinning
initialState={{
columnPinning: {
left: ['rowNumber'],
left: pinnedColumns,
},
}}
enableStickyHeader
defaultColumn={{ minSize: 100 }}
layoutMode="grid"
state={{
columnPinning: {
left: ['rowNumber'],
left: pinnedColumns,
},
columnVisibility,
columnOrder: orderedHeaders,
Expand Down Expand Up @@ -341,20 +340,24 @@ const Table = (props: { primaryHeaderHeight: number }) => {

return null;
})()}
<Menu.Item
onClick={() => {
copyJSON();
closeContextMenu();
}}>
Copy JSON
</Menu.Item>
<Menu.Item
onClick={() => {
copyUrl();
closeContextMenu();
}}>
Copy permalink
</Menu.Item>
{isSecureHTTPContext && (
<>
<Menu.Item
onClick={() => {
copyJSON();
closeContextMenu();
}}>
Copy JSON
</Menu.Item>
<Menu.Item
onClick={() => {
copyUrl();
closeContextMenu();
}}>
Copy permalink
</Menu.Item>
</>
)}
</Menu>
</div>
)}
Expand Down

0 comments on commit e204794

Please sign in to comment.