X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fcatalog%2Fcatalog.component.ts;h=4eab40831c004bbfed11f9bc603a9dd1ee19e8af;hb=fa50e55b6e8977ad0a6a28096fe58fb54924ca2b;hp=97dfd7ca2f5da4f6d6301eb8f9bda901ca5c67f2;hpb=226fd436a085f717d4cbf81bf1719bdaf1468414;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/catalog/catalog.component.ts b/webapp-frontend/src/app/catalog/catalog.component.ts index 97dfd7ca..4eab4083 100644 --- a/webapp-frontend/src/app/catalog/catalog.component.ts +++ b/webapp-frontend/src/app/catalog/catalog.component.ts @@ -25,6 +25,7 @@ import { AppMgrService } from '../services/app-mgr/app-mgr.service'; import { ConfirmDialogService } from './../services/ui/confirm-dialog.service'; import { NotificationService } from './../services/ui/notification.service'; import { CatalogDataSource } from './catalog.datasource'; +import { XMDeployableApp } from '../interfaces/app-mgr.types'; @Component({ selector: 'rd-app-catalog', @@ -53,12 +54,12 @@ export class CatalogComponent implements OnInit { this.errorDiaglogService.displayError(aboutError); } - onDeployApp(name: string): void { - this.confirmDialogService.openConfirmDialog('Deploy application ' + name + '?') - .afterClosed().subscribe( (res: any) => { + onDeployApp(app: XMDeployableApp): void { + this.confirmDialogService.openConfirmDialog('Deploy application ' + app.name + '?') + .afterClosed().subscribe( (res: boolean) => { if (res) { - this.appMgrService.deployXapp(name).subscribe( - (response: HttpResponse) => { + this.appMgrService.deployXapp(app.name).subscribe( + (response: HttpResponse) => { this.notificationService.success('Deploy succeeded!'); }, (error: HttpErrorResponse) => {