Skip to content

Commit

Permalink
fix label text and improve log load message (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored Sep 1, 2023
1 parent f6b42c0 commit 4105598
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/pages/Logs/LogTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const LogTable: FC = () => {

getCurrentDataResponse(
{ ...subLogQuery.get(), startTime: subLogQuery.get().startTime, endTime: currentStartTime },
`SELECT max(p_timestamp) as currentQueryEndTime FROM ${subLogQuery.get().streamName}`,
`SELECT max(p_timestamp) as currentQueryEndTime FROM ${subLogQuery.get().streamName}`,
);
} else if (
logs?.length === 0 &&
Expand Down Expand Up @@ -347,7 +347,7 @@ const LogTable: FC = () => {
}
getCurrentDataResponse(
query,
`SELECT max(p_timestamp) as currentQueryEndTime, count(*) as totalcurrentcount FROM ${
`SELECT max(p_timestamp) as currentQueryEndTime, count(*) as totalcurrentcount FROM ${
subLogQuery.get().streamName
}`,
);
Expand Down Expand Up @@ -453,11 +453,7 @@ const LogTable: FC = () => {
gap: '1rem',
}}>
<Text>
Loaded{' '}
{currentQueryCount?.start && currentQueryCount?.end && !currentQueryCount.hide
? `${currentQueryCount?.end - currentQueryCount?.start} `
: '0'}{' '}
of {totalCount} events
Loaded {(currentQueryCount?.start&& currentQueryCount?.end && !currentQueryCount.hide)?`${currentQueryCount?.start} - ${currentQueryCount?.end} `: " 0 - 0 " } of {totalCount} events in {subLogSelectedTimeRange.get().state === 'fixed'? subLogSelectedTimeRange.get().value: "selected time range"}
</Text>
</Box>
<FilterPills />
Expand Down Expand Up @@ -561,7 +557,7 @@ const LogTable: FC = () => {
<Pagination.Previous />
<Pagination.Items />
<Pagination.Next />
<Tooltip label="Loader older data">
<Tooltip label="Load older data">
<Pagination.Last
onClick={() => {
setCurrentEndTime(currentStartTime);
Expand Down

0 comments on commit 4105598

Please sign in to comment.