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)

Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec authored Jul 31, 2023
1 parent 92616e4 commit 5795ba7
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 5795ba7

Please sign in to comment.