Added parameter to hide loading message

This commit is contained in:
Giuseppe Digilio
2018-11-28 10:52:34 +01:00
parent 5995f87ec0
commit 4a353fce91
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<div>
<label *ngIf="message">{{ message }}</label>
<label *ngIf="showMessage && message">{{ message }}</label>
<div class="loader">
<span class="l-1"></span>
<span class="l-2"></span>

View File

@@ -12,6 +12,7 @@ import { Subscription } from 'rxjs/Subscription';
export class LoadingComponent implements OnDestroy, OnInit {
@Input() message: string;
@Input() showMessage = true;
private subscription: Subscription;