src/app/ceph/dashboard/dashboard/dashboard.component.ts
selector | cd-dashboard |
styleUrls | ./dashboard.component.scss |
templateUrl | ./dashboard.component.html |
Properties |
Methods |
constructor()
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
hasGrafana |
Default value : false
|
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'cd-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit {
hasGrafana = false; // TODO: Temporary var, remove when grafana is implemented
constructor() {}
ngOnInit() {}
}
<div>
<cd-refresh-selector></cd-refresh-selector>
<tabset *ngIf="hasGrafana">
<tab i18n-heading
heading="Health">
<cd-health></cd-health>
</tab>
<tab i18n-heading
heading="Statistics">
</tab>
</tabset>
<cd-health *ngIf="!hasGrafana"></cd-health>
</div>
./dashboard.component.scss
div {
padding-top: 20px;
}