File

src/app/shared/components/view-cache/view-cache.component.ts

Implements

OnInit

Metadata

selector cd-view-cache
styleUrls ./view-cache.component.scss
templateUrl ./view-cache.component.html

Index

Properties
Methods
Inputs

Constructor

constructor()

Inputs

status
Type : ViewCacheStatus
statusFor
Type : string

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

vcs
Default value : ViewCacheStatus
import { Component, Input, OnInit } from '@angular/core';

import { ViewCacheStatus } from '../../../shared/enum/view-cache-status.enum';

@Component({
  selector: 'cd-view-cache',
  templateUrl: './view-cache.component.html',
  styleUrls: ['./view-cache.component.scss']
})
export class ViewCacheComponent implements OnInit {
  @Input()
  status: ViewCacheStatus;
  @Input()
  statusFor: string;
  vcs = ViewCacheStatus;

  constructor() {}

  ngOnInit() {}
}
<cd-info-panel *ngIf="status === vcs.ValueNone">
  <ng-container i18n>Retrieving data<span *ngIf="statusFor"> for
  <span [innerHtml]="statusFor"></span></span>. Please wait...</ng-container>
</cd-info-panel>

<cd-warning-panel *ngIf="status === vcs.ValueStale">
  <ng-container i18n>Displaying previously cached data<span *ngIf="statusFor">
  for <span [innerHtml]="statusFor"></span></span>.</ng-container>
</cd-warning-panel>

<cd-error-panel *ngIf="status === vcs.ValueException">
  <ng-container i18n>Could not load data<span *ngIf="statusFor"> for
  <span [innerHtml]="statusFor"></span></span>.
  Please check the cluster health.</ng-container>
</cd-error-panel>

./view-cache.component.scss

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""