diff --git a/src/modules/applications/components/applications-item-detail/applications-item-detail.component.ts b/src/modules/applications/components/applications-item-detail/applications-item-detail.component.ts index 0da6acde..240415fb 100644 --- a/src/modules/applications/components/applications-item-detail/applications-item-detail.component.ts +++ b/src/modules/applications/components/applications-item-detail/applications-item-detail.component.ts @@ -19,6 +19,7 @@ import { DialogTestComponent, SELECTED_APPLICATION$, LATEST_MODEL_VERSION_ID, + SELECTED_DEL_APPLICATION$, } from '@applications/components/dialogs'; import { tap } from 'rxjs/operators'; @@ -118,7 +119,10 @@ export class ApplicationsItemDetailComponent implements OnInit, OnDestroy { } public removeApplication() { - this.dialog.createDialog({component: DialogDeleteApplicationComponent}); + this.dialog.createDialog({ + component: DialogDeleteApplicationComponent, + providers: [{ provide: SELECTED_DEL_APPLICATION$, useValue: this.application$}], + }); } public isReady(status: string): boolean { diff --git a/src/modules/applications/components/dialogs/dialog-delete-application/dialog-delete-application.component.html b/src/modules/applications/components/dialogs/dialog-delete-application/dialog-delete-application.component.html index 39f9d652..e96941b3 100644 --- a/src/modules/applications/components/dialogs/dialog-delete-application/dialog-delete-application.component.html +++ b/src/modules/applications/components/dialogs/dialog-delete-application/dialog-delete-application.component.html @@ -1,8 +1,9 @@ - -
{{ name }}
+{{ name }}
+