Skip to content

Commit d850bd6

Browse files
committed
make external link icon available always &&remove redirect logic in loadAppInfo
Signed-off-by: Atif Ali <[email protected]>
1 parent caa2d8b commit d850bd6

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

ui/src/app/applications/components/application-details/application-details.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,18 +1174,6 @@ export class ApplicationDetails extends React.Component<RouteComponentProps<{app
11741174
return from(services.applications.get(name, appNamespace))
11751175
.pipe(
11761176
mergeMap(app => {
1177-
// Check if this application is managed by another Argo CD instance
1178-
const managedByURL = AppUtils.getManagedByURL(app);
1179-
if (managedByURL) {
1180-
console.log('🔍 Application is managed by external instance:', managedByURL);
1181-
// Redirect to the external instance
1182-
const externalUrl = managedByURL + '/applications/' + app.metadata.namespace + '/' + app.metadata.name;
1183-
console.log('🔍 Redirecting to external URL:', externalUrl);
1184-
window.open(externalUrl, '_blank');
1185-
// Throw an error to be caught by the error handler
1186-
throw new Error(`This application is managed by another Argo CD instance. Redirecting to ${externalUrl}`);
1187-
}
1188-
11891177
const fallbackTree = {
11901178
nodes: app.status.resources.map(res => ({...res, parentRefs: [] as any[], info: [] as any[], resourceVersion: '', uid: ''})),
11911179
orphanedNodes: [],

ui/src/app/applications/components/application-resource-tree/application-resource-tree.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ function renderPodGroup(props: ApplicationResourceTreeProps, id: string, node: R
488488
{node.hook && <i title='Resource lifecycle hook' className='fa fa-anchor' />}
489489
{healthState != null && <HealthStatusIcon state={healthState} />}
490490
{comparisonStatus != null && <ComparisonStatusIcon status={comparisonStatus} resource={!rootNode && node} />}
491-
{appNode && !rootNode && (
491+
{appNode && (
492492
<Consumer>
493493
{ctx => {
494494
// For nested applications, use the node's data to construct the URL
@@ -779,7 +779,7 @@ function renderResourceNode(props: ApplicationResourceTreeProps, id: string, nod
779779
{node.hook && <i title='Resource lifecycle hook' className='fa fa-anchor' />}
780780
{healthState != null && <HealthStatusIcon state={healthState} />}
781781
{comparisonStatus != null && <ComparisonStatusIcon status={comparisonStatus} resource={!rootNode && node} />}
782-
{appNode && !rootNode && (
782+
{appNode && (
783783
<Consumer>
784784
{ctx => {
785785
// For nested applications, use the node's data to construct the URL

0 commit comments

Comments
 (0)