Skip to content

Commit 44b9f13

Browse files
committed
Debugging
1 parent 6d549b2 commit 44b9f13

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

client/imports/ui/components/wetty/terminal.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@ export class Terminal {
2121
private _viewContainer : ViewContainerRef;
2222
private el : ElementRef;
2323

24-
@Input() username: string;
25-
@Input() password: string;
26-
@Input() host: string;
27-
@Input() domain: string;
28-
@Input() path: string = '/wetty/socket.io';
29-
3024
constructor(el : ElementRef, private viewContainer:ViewContainerRef){
3125
this.el = el;
3226
this._viewContainer = viewContainer;
3327
}
3428

35-
public openTerminal(){
29+
public openTerminal(auth : any){
3630
// slf
3731
var slf = this;
3832

@@ -46,12 +40,12 @@ export class Terminal {
4640
// Connection Defaults
4741
var opts = {
4842
// 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,
5246
// Socket.io Connection
53-
domain : this.domain,
54-
path : this.path
47+
domain : auth.domain,
48+
path : auth.path || '/wetty/socket.io'
5549
}
5650

5751
// Create Query Object

0 commit comments

Comments
 (0)