1 import { Component, Input, OnChanges } from '@angular/core';
2 import { NvmeofSubsystem } from '~/app/shared/models/nvmeof';
5 selector: 'cd-nvmeof-subsystems-details',
6 templateUrl: './nvmeof-subsystems-details.component.html',
7 styleUrls: ['./nvmeof-subsystems-details.component.scss']
9 export class NvmeofSubsystemsDetailsComponent implements OnChanges {
11 selection: NvmeofSubsystem;
19 this.selectedItem = this.selection;
20 this.subsystemNQN = this.selectedItem.nqn;
22 this.data[$localize`Serial Number`] = this.selectedItem.serial_number;
23 this.data[$localize`Model Number`] = this.selectedItem.model_number;
24 this.data[$localize`Minimum Controller Identifier`] = this.selectedItem.min_cntlid;
25 this.data[$localize`Maximum Controller Identifier`] = this.selectedItem.max_cntlid;
26 this.data[$localize`Subsystem Type`] = this.selectedItem.subtype;