Skip to content

Commit

Permalink
fix: Correct broken forever option in pod logs viewer. Fixes #14762 (
Browse files Browse the repository at this point in the history
…#14763) (#14804)

Signed-off-by: Alex Collins <alex_collins@intuit.com>
Co-authored-by: Alex Collins <alexec@users.noreply.github.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and alexec committed Jul 31, 2023
1 parent 469f257 commit 9b6892c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import {Tooltip} from 'argo-ui';
// SinceSelector is a component that renders a dropdown menu of time ranges
export const SinceSecondsSelector = ({sinceSeconds, setSinceSeconds}: {sinceSeconds: number; setSinceSeconds: (value: number) => void}) => (
<Tooltip content='Show logs since a given time'>
<select className='argo-field' style={{marginRight: '1em'}} value={sinceSeconds} onChange={e => setSinceSeconds(parseInt(e.target.value, 10))}>
<select
className='argo-field'
style={{marginRight: '1em'}}
value={sinceSeconds}
onChange={e => {
const v = parseInt(e.target.value, 10);
setSinceSeconds(!isNaN(v) ? v : null);
}}>
<option value='60'>1m ago</option>
<option value='300'>5m ago</option>
<option value='600'>10m ago</option>
Expand Down

0 comments on commit 9b6892c

Please sign in to comment.