diff --git a/src/app/views/dockerconfig/dockerconfig.component.html b/src/app/views/dockerconfig/dockerconfig.component.html index d9df901a..50f5f591 100644 --- a/src/app/views/dockerconfig/dockerconfig.component.html +++ b/src/app/views/dockerconfig/dockerconfig.component.html @@ -5,7 +5,7 @@

Docker

Docker related settings and configurations.

- + @@ -27,7 +27,27 @@

Docker

-
+ + + + + {{ handshake.host.alias }} + draft + + + + Host: {{ handshake.host.hostname }}
+
+ + + + + +
+
+
+ +
No connections yet!
@@ -46,31 +66,6 @@

Docker

- -

Handshakes

- - - - - - {{ handshake.host.alias }} - {{handshake.status}} - - - - Host: {{ handshake.host.hostname }}
- {{ handshake.lastErrorMessage }} -
- - - - - - -
-
-
-
diff --git a/src/app/views/dockerconfig/dockerconfig.component.ts b/src/app/views/dockerconfig/dockerconfig.component.ts index f086749a..467bbbd2 100644 --- a/src/app/views/dockerconfig/dockerconfig.component.ts +++ b/src/app/views/dockerconfig/dockerconfig.component.ts @@ -147,6 +147,7 @@ export class DockerconfigComponent implements OnInit, OnDestroy { this.modalInstanceId = id; this.activeModal = 'add_edit'; } + showHandshake(handshake: HandshakeInfo) { this.modalInstanceId = null; this.modalHandshake = handshake; @@ -167,35 +168,6 @@ export class DockerconfigComponent implements OnInit, OnDestroy { }); } - removeHandshake(handshake: HandshakeInfo) { - this._crud.deleteHandshake(handshake.id).subscribe({ - next: res => { - this.handshakes = res; - }, - error: err => { - console.log(err); - }, - }); - } - - isActive(handshake: HandshakeInfo): boolean { - const state = handshake.status; - return state === 'STARTING' || state === 'RUNNING' || state == 'NOT_RUNNING'; - } - getColor(handshake: HandshakeInfo): string { - const state = handshake.status; - if (state === 'STARTING' || state === 'NOT_RUNNING' || state === 'RUNNING') { - return 'primary'; - } - if (state === 'SUCCESS') { - return 'success'; - } - if (state === 'CANCELLED') { - return 'secondary'; - } - return 'danger'; - } - closeModal(newlist: DockerInstanceInfo[]) { if (newlist !== undefined) { this.instances = newlist;