File tree 1 file changed +6
-12
lines changed
client/imports/ui/components/wetty 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,12 @@ export class Terminal {
21
21
private _viewContainer : ViewContainerRef ;
22
22
private el : ElementRef ;
23
23
24
- @Input ( ) username : string ;
25
- @Input ( ) password : string ;
26
- @Input ( ) host : string ;
27
- @Input ( ) domain : string ;
28
- @Input ( ) path : string = '/wetty/socket.io' ;
29
-
30
24
constructor ( el : ElementRef , private viewContainer :ViewContainerRef ) {
31
25
this . el = el ;
32
26
this . _viewContainer = viewContainer ;
33
27
}
34
28
35
- public openTerminal ( ) {
29
+ public openTerminal ( auth : any ) {
36
30
// slf
37
31
var slf = this ;
38
32
@@ -46,12 +40,12 @@ export class Terminal {
46
40
// Connection Defaults
47
41
var opts = {
48
42
// SSH Connection
49
- username : this . username ,
50
- password : this . password ,
51
- host : this . host ,
43
+ username : auth . username ,
44
+ password : auth . password ,
45
+ host : auth . host ,
52
46
// Socket.io Connection
53
- domain : this . domain ,
54
- path : this . path
47
+ domain : auth . domain ,
48
+ path : auth . path || '/wetty/socket.io'
55
49
}
56
50
57
51
// Create Query Object
You can’t perform that action at this time.
0 commit comments