File

src/app/ceph/dashboard/dashboard/dashboard.component.ts

Implements

OnInit

Metadata

selector cd-dashboard
styleUrls ./dashboard.component.scss
templateUrl ./dashboard.component.html

Index

Properties
Methods

Constructor

constructor()

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

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;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""