github.com/argoproj/argo-cd/v2@v2.10.9/ui/src/app/applications/components/pod-logs-viewer/fullscreen-button.tsx (about) 1 import {Link} from 'react-router-dom'; 2 import * as React from 'react'; 3 import {PodLogsProps} from './pod-logs-viewer'; 4 import {Button} from '../../../shared/components/button'; 5 6 export const FullscreenButton = ({ 7 applicationName, 8 applicationNamespace, 9 containerName, 10 fullscreen, 11 group, 12 kind, 13 name, 14 namespace, 15 podName 16 }: PodLogsProps & {fullscreen?: boolean}) => { 17 const fullscreenURL = 18 `/applications/${applicationNamespace}/${applicationName}/${namespace}/${containerName}/logs?` + `podName=${podName}&group=${group}&kind=${kind}&name=${name}`; 19 return ( 20 !fullscreen && ( 21 <Link to={fullscreenURL} target='_blank' rel='noopener noreferrer'> 22 <Button title='Show logs in fullscreen in a new window' icon='external-link-alt' /> 23 </Link> 24 ) 25 ); 26 };