This is an automated email from the ASF dual-hosted git repository.

JHoelli pushed a commit to branch 
1358-harmonize-resource-creation-workflow-for-connect
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 7c3d9bcb0247540339ca7ef98912e9b7669e6b52
Author: Jacqueline Höllig <[email protected]>
AuthorDate: Fri Jul 10 06:48:23 2026 +0000

    show Code
---
 .../existing-adapters.component.html                  |  8 ++++++++
 .../existing-adapters/existing-adapters.component.ts  | 19 +++++++++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git 
a/ui/src/app/connect/components/existing-adapters/existing-adapters.component.html
 
b/ui/src/app/connect/components/existing-adapters/existing-adapters.component.html
index 6e3e8cfcca..23b7f2ae97 100644
--- 
a/ui/src/app/connect/components/existing-adapters/existing-adapters.component.html
+++ 
b/ui/src/app/connect/components/existing-adapters/existing-adapters.component.html
@@ -252,6 +252,14 @@
                         <mat-icon>visibility</mat-icon>
                         <span>{{ 'Show' | translate }}</span>
                     </button>
+                    <button
+                        mat-menu-item
+                        data-cy="show-adapter-code"
+                        (click)="showCodeDialog(element)"
+                    >
+                        <mat-icon>code</mat-icon>
+                        <span>{{ 'Show as Code' | translate }}</span>
+                    </button>
                     <button
                         mat-menu-item
                         data-cy="edit-adapter"
diff --git 
a/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
 
b/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
index 5f98712f4c..bf041514d7 100644
--- 
a/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
+++ 
b/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
@@ -53,6 +53,7 @@ import {
     SpTableActionsDirective,
     SpTableComponent,
 } from '@streampipes/shared-ui';
+import { AdapterCodePanelComponent } from 
'../adapter-code-panel/adapter-code-panel.component';
 import { DeleteAdapterDialogComponent } from 
'../../dialog/delete-adapter-dialog/delete-adapter-dialog.component';
 import { AllAdapterActionsComponent } from 
'../../dialog/start-all-adapters/all-adapter-actions-dialog.component';
 import { MatSort, MatSortHeader } from '@angular/material/sort';
@@ -325,7 +326,7 @@ export class ExistingAdaptersComponent implements OnInit, 
OnDestroy {
     }
 
     showManageDialog(adapter: AdapterSummaryDto): void {
-        
this.adapterService.getAdapter(adapter.elementId).subscribe(fullAdapter => {
+         
this.adapterService.getAdapter(adapter.elementId).subscribe(fullAdapter => {
             const resourceConfig: 
ObjectManageDialogResourceConfig<AdapterDescription> =
                 {
                     resourceLabel: 'Adapter',
@@ -363,9 +364,23 @@ export class ExistingAdaptersComponent implements OnInit, 
OnDestroy {
                     this.getAdaptersRunning();
                 }
             });
-        });
+              });
     }
 
+showCodeDialog(adapter: AdapterSummaryDto): void {
+    this.adapterService.getAdapter(adapter.elementId).subscribe(fullAdapter => 
{
+        this.dialogService.open(AdapterCodePanelComponent, {
+            panelType: PanelType.STANDARD_PANEL,
+            title: this.translate.instant('Show as Code'),
+            width: '70vw',
+            data: {
+                adapterDescription: fullAdapter,
+                maxHeight: 'none',
+            },
+        });
+    });
+}
+
     /**
      * Start edit mode
      * @param adapter

Reply via email to