Skip to content

Commit 40fc7ae

Browse files
committed
Fixed Terminal issue
1 parent f0cc713 commit 40fc7ae

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="loading-menu" *ngIf="loading">
2+
<h2>LOADING LAB...</h2>
3+
<center>
4+
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
5+
<md-spinner></md-spinner>
6+
</center>
7+
</div>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**/
44

55
// Angular Imports
6-
import { Component, ElementRef, Input, ViewContainerRef } from '@angular/core';
6+
import { Component, ElementRef, Input } from '@angular/core';
77
import { MdProgressCircle, MdSpinner } from '@angular2-material/progress-circle/progress-circle';
88

99
declare var io: any;
@@ -15,23 +15,23 @@ declare var window: any;
1515
selector: 'terminal',
1616
inputs: ['username','password','host','domain','path'],
1717
directives: [MdProgressCircle, MdSpinner],
18-
template: '<div class="loading-menu"><h2>LOADING LAB...</h2><center><md-progress-circular md-mode="indeterminate"></md-progress-circular><md-spinner></md-spinner></center></div>'
18+
templateUrl: '/client/imports/ui/components/wetty/terminal.html',
1919
})
2020
export class Terminal {
21-
private _viewContainer : ViewContainerRef;
2221
private el : ElementRef;
22+
public loading : boolean;
2323

24-
constructor(el : ElementRef, private viewContainer:ViewContainerRef){
24+
constructor(el : ElementRef){
2525
this.el = el;
26-
this._viewContainer = viewContainer;
26+
this.loading = true;
2727
}
2828

2929
public openTerminal(auth : any){
3030
// slf
3131
var slf = this;
3232

33-
// Clear viewContainer
34-
this._viewContainer.clear();
33+
// Hide Loading
34+
this.loading = false;
3535

3636
// Create Term
3737
var term;

0 commit comments

Comments
 (0)