File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
web/terminal/src/app/terminal Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ export class TerminalComponent implements AfterViewInit {
54
54
ngAfterViewInit ( ) : void {
55
55
if ( this . namespace_ && this . podName && this . container ) {
56
56
this . setupConnection ( )
57
- this . initTerm ( )
58
57
} else {
59
58
alert ( "please set param: namespace,pod and container name " )
60
59
}
@@ -172,7 +171,7 @@ export class TerminalComponent implements AfterViewInit {
172
171
this . conn_ . onopen = this . onConnectionOpen . bind ( this , id ) ;
173
172
this . conn_ . onmessage = this . onConnectionMessage . bind ( this ) ;
174
173
this . conn_ . onclose = this . onConnectionClose . bind ( this ) ;
175
-
174
+ this . initTerm ( )
176
175
this . cdr_ . markForCheck ( ) ;
177
176
} catch ( e ) {
178
177
this . term . write ( e . error . message )
You can’t perform that action at this time.
0 commit comments