@@ -41,7 +41,6 @@ import { CUSTOM_LOGS_FILTER } from '../../../../../../config'
41
41
import { SelectedCustomLogFilterType } from './node.type'
42
42
import CustomLogsModal from './CustomLogsModal/CustomLogsModal'
43
43
44
-
45
44
const subject : Subject < string > = new Subject ( )
46
45
const commandLineParser = require ( 'command-line-parser' )
47
46
@@ -52,6 +51,7 @@ function LogsComponent({
52
51
setLogSearchTerms,
53
52
isResourceBrowserView,
54
53
selectedResource,
54
+ isExternalApp,
55
55
} : LogsComponentProps ) {
56
56
const [ logsShownOption , setLogsShownOption ] = useState ( {
57
57
prev : getPodLogsOptions ( ) [ 5 ] ,
@@ -679,25 +679,27 @@ function LogsComponent({
679
679
Option : ( props ) => < Option { ...props } /> ,
680
680
} }
681
681
/>
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' } }
698
689
/>
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
+ ) ) }
701
703
</ div >
702
704
< div className = "dc__border-right " > </ div >
703
705
< form
0 commit comments