@@ -41,7 +41,6 @@ import { CUSTOM_LOGS_FILTER } from '../../../../../../config'
4141import { SelectedCustomLogFilterType } from './node.type'
4242import CustomLogsModal from './CustomLogsModal/CustomLogsModal'
4343
44-
4544const subject : Subject < string > = new Subject ( )
4645const commandLineParser = require ( 'command-line-parser' )
4746
@@ -52,6 +51,7 @@ function LogsComponent({
5251 setLogSearchTerms,
5352 isResourceBrowserView,
5453 selectedResource,
54+ isExternalApp,
5555} : LogsComponentProps ) {
5656 const [ logsShownOption , setLogsShownOption ] = useState ( {
5757 prev : getPodLogsOptions ( ) [ 5 ] ,
@@ -679,25 +679,27 @@ function LogsComponent({
679679 Option : ( props ) => < Option { ...props } /> ,
680680 } }
681681 />
682- < div className = "h-16 dc__border-right ml-8 mr-8" > </ div >
683- { downloadInProgress ? (
684- < Progressing
685- size = { 16 }
686- styles = { { display : 'flex' , justifyContent : 'flex-start' , width : 'max-content' } }
687- />
688- ) : (
689- < Tippy className = "default-tt" arrow = { false } placement = "top" content = { 'Download logs' } >
690- < Download
691- className = { `icon-dim-16 mr-8 cursor ${
692- ( podContainerOptions ?. containerOptions ?? [ ] ) . length === 0 ||
693- ( prevContainer && showNoPrevContainer != '' )
694- ? 'cursor-not-allowed dc__opacity-0_5'
695- : ''
696- } `}
697- onClick = { handleDownloadLogs }
682+ { ! isExternalApp && < div className = "h-16 dc__border-right ml-8 mr-8" > </ div > }
683+
684+ { ! isExternalApp &&
685+ ( downloadInProgress ? (
686+ < Progressing
687+ size = { 16 }
688+ styles = { { display : 'flex' , justifyContent : 'flex-start' , width : 'max-content' } }
698689 />
699- </ Tippy >
700- ) }
690+ ) : (
691+ < Tippy className = "default-tt" arrow = { false } placement = "top" content = { 'Download logs' } >
692+ < Download
693+ className = { `icon-dim-16 mr-8 cursor ${
694+ ( podContainerOptions ?. containerOptions ?? [ ] ) . length === 0 ||
695+ ( prevContainer && showNoPrevContainer != '' )
696+ ? 'cursor-not-allowed dc__opacity-0_5'
697+ : ''
698+ } `}
699+ onClick = { handleDownloadLogs }
700+ />
701+ </ Tippy >
702+ ) ) }
701703 </ div >
702704 < div className = "dc__border-right " > </ div >
703705 < form
0 commit comments