Skip to content

Commit 55a2e1e

Browse files
committed
Merge branch 'master' of github.com:KubeOperator/KubePi
2 parents 6dce758 + bfa0e5f commit 55a2e1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/terminal/src/app/terminal/terminal.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export class TerminalComponent implements AfterViewInit {
5454
ngAfterViewInit(): void {
5555
if (this.namespace_ && this.podName && this.container) {
5656
this.setupConnection()
57-
this.initTerm()
5857
} else {
5958
alert("please set param: namespace,pod and container name ")
6059
}
@@ -172,7 +171,7 @@ export class TerminalComponent implements AfterViewInit {
172171
this.conn_.onopen = this.onConnectionOpen.bind(this, id);
173172
this.conn_.onmessage = this.onConnectionMessage.bind(this);
174173
this.conn_.onclose = this.onConnectionClose.bind(this);
175-
174+
this.initTerm()
176175
this.cdr_.markForCheck();
177176
} catch (e) {
178177
this.term.write(e.error.message)

0 commit comments

Comments
 (0)