From 99c3c189aa9c2c8a641e7f1157740a380b263e21 Mon Sep 17 00:00:00 2001 From: Abduaziz Date: Thu, 14 Jul 2022 14:31:43 +0500 Subject: [PATCH] :fire: implementation of getting containers in real-time, edit image name to id --- .../run-container-modal.component.ts | 2 +- .../core/containers/containers.component.html | 9 +++------ .../core/containers/containers.component.ts | 18 ++++++++++++++---- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/client/src/app/components/modal/run-container-modal/run-container-modal.component.ts b/src/client/src/app/components/modal/run-container-modal/run-container-modal.component.ts index 38aa6e9..ac2ccbc 100644 --- a/src/client/src/app/components/modal/run-container-modal/run-container-modal.component.ts +++ b/src/client/src/app/components/modal/run-container-modal/run-container-modal.component.ts @@ -54,7 +54,7 @@ export class RunContainerModalComponent implements OnInit { containerData['ports'] = {}; containerData['environment'] = {}; - containerData['image'] = this.data.resource?.name; + containerData['image'] = this.data.resource?.short_id; if (firstPort && secondPort) { containerData['ports'][firstPort] = secondPort; diff --git a/src/client/src/app/core/containers/containers.component.html b/src/client/src/app/core/containers/containers.component.html index c032d6d..1a45bcd 100644 --- a/src/client/src/app/core/containers/containers.component.html +++ b/src/client/src/app/core/containers/containers.component.html @@ -3,11 +3,12 @@ -
+

@@ -27,11 +28,7 @@