1 import { Component, Input, OnChanges } from '@angular/core';
2 import { Icons } from '~/app/shared/enum/icons.enum';
5 selector: 'cd-card-row',
6 templateUrl: './card-row.component.html',
7 styleUrls: ['./card-row.component.scss']
9 export class CardRowComponent implements OnChanges {
20 summaryType = 'default';
26 if (this.data.total || this.data.total === 0) {
27 this.total = this.data.total;
28 } else if (this.summaryType === 'iscsi') {
29 this.total = this.data.up + this.data.down || 0;
31 this.total = this.data;