Skip to content

Commit 6202652

Browse files
committed
hode download in argo cd
1 parent d87354d commit 6202652

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

src/components/v2/appDetails/appDetails.type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ export interface LogsComponentProps extends NodeDetailPropsType {
412412
targetContainerOption?: OptionType[]
413413
ephemeralFormAdvanced?: EphemeralFormAdvancedType
414414
imageListOption?: OptionType[]
415+
isExternalApp?: boolean
415416
}
416417

417418
export interface TerminalComponentProps {

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetail.component.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ function NodeDetailComponent({
388388
ephemeralContainerType={ephemeralContainerType}
389389
targetContainerOption={targetContainerOption}
390390
imageListOption={imageListOption}
391+
isExternalApp={isExternalApp}
391392
/>
392393
</div>
393394
</Route>

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/Logs.component.tsx

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import { CUSTOM_LOGS_FILTER } from '../../../../../../config'
4141
import { SelectedCustomLogFilterType } from './node.type'
4242
import CustomLogsModal from './CustomLogsModal/CustomLogsModal'
4343

44-
4544
const subject: Subject<string> = new Subject()
4645
const 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

Comments
 (0)