Skip to content

Commit

Permalink
NAS-131295: System Support page is reporting incorrect Model informat…
Browse files Browse the repository at this point in the history
…ion (#10750)
  • Loading branch information
AlexKarpov98 authored Sep 26, 2024
1 parent 6708d3d commit fb5e85d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div class="sys-info-row">
<span class="label">{{ 'Model' | translate }}:</span>
<span class="value">{{ systemInfo().model }}</span>
<span class="value">{{ licenseInfo().model || systemInfo().model }}</span>
</div>
@if (systemInfo().system_serial) {
<div class="sys-info-row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('SysInfoComponent', () => {
const licenseInfo = {
customer_name: 'iXsystems Inc.',
features: ['DEDUP', 'FIBRECHANNEL', 'VM'],
model: 'M60',
contract_type: 'GOLD',
expiration_date: '2022-06-10',
daysLeftinContract: -4,
Expand Down Expand Up @@ -67,7 +68,7 @@ describe('SysInfoComponent', () => {
expect(sysInfoBlock).not.toBeTruthy();
expect(infoRows).toEqual({
'Customer Name:': licenseInfo.customer_name,
'Model:': systemInfo.model,
'Model:': licenseInfo.model,
'Licensed Serials:': licenseInfo.system_serial,
'System Serial:': systemInfo.system_serial,
'Features:': licenseInfo.features.join(', '),
Expand Down

0 comments on commit fb5e85d

Please sign in to comment.