Model type shown only when it differs from the asset type
This commit is contained in:
@@ -105,9 +105,13 @@
|
||||
<span class="info-label">Model</span>
|
||||
<span class="info-value">{{ computer.computer?.modelname || '-' }}</span>
|
||||
</div>
|
||||
<!-- The catalog model's own type. Kept separate from this
|
||||
asset's type: modeltypes spans every kind of asset. -->
|
||||
<div class="info-row" v-if="computer.computer?.modeltypename">
|
||||
<!-- Only when it DIFFERS from this asset's own type. The two are
|
||||
separate tables - modeltypes spans every kind of asset - but
|
||||
they carry the same names in practice, so showing both
|
||||
always put two identical Type rows in one section. Worth
|
||||
seeing only when they disagree. -->
|
||||
<div class="info-row"
|
||||
v-if="computer.computer?.modeltypename && computer.computer.modeltypename !== computer.computer?.computertypename">
|
||||
<span class="info-label">Model type</span>
|
||||
<span class="info-value">{{ computer.computer.modeltypename }}</span>
|
||||
</div>
|
||||
|
||||
@@ -124,9 +124,13 @@
|
||||
<span class="info-label">Model</span>
|
||||
<span class="info-value">{{ machine.machine?.modelname || '-' }}</span>
|
||||
</div>
|
||||
<!-- The catalog model's own type. Kept separate from this
|
||||
asset's type: modeltypes spans every kind of asset. -->
|
||||
<div class="info-row" v-if="machine.machine?.modeltypename">
|
||||
<!-- Only when it DIFFERS from this asset's own type. The two are
|
||||
separate tables - modeltypes spans every kind of asset - but
|
||||
they carry the same names in practice, so showing both
|
||||
always put two identical Type rows in one section. Worth
|
||||
seeing only when they disagree. -->
|
||||
<div class="info-row"
|
||||
v-if="machine.machine?.modeltypename && machine.machine.modeltypename !== machine.machine?.machinetypename">
|
||||
<span class="info-label">Model type</span>
|
||||
<span class="info-value">{{ machine.machine.modeltypename }}</span>
|
||||
</div>
|
||||
|
||||
@@ -98,9 +98,10 @@
|
||||
<span class="info-label">Model</span>
|
||||
<span class="info-value">{{ device.networkdevice.modelname }}</span>
|
||||
</div>
|
||||
<!-- The catalog model's own type, kept separate from the device
|
||||
type: modeltypes spans every kind of asset. -->
|
||||
<div class="info-row" v-if="device.networkdevice?.modeltypename">
|
||||
<!-- Only when it DIFFERS from the device's own type: the two are
|
||||
separate tables but carry the same names in practice. -->
|
||||
<div class="info-row"
|
||||
v-if="device.networkdevice?.modeltypename && device.networkdevice.modeltypename !== device.networkdevice?.networkdevicetypename">
|
||||
<span class="info-label">Model type</span>
|
||||
<span class="info-value">{{ device.networkdevice.modeltypename }}</span>
|
||||
</div>
|
||||
|
||||
@@ -49,9 +49,10 @@
|
||||
<span class="hero-detail-label">Model</span>
|
||||
<span class="hero-detail-value">{{ printer.printer.modelname }}</span>
|
||||
</div>
|
||||
<!-- The catalog model's own type, kept separate from the printer's
|
||||
type: modeltypes spans every kind of asset. -->
|
||||
<div class="hero-detail" v-if="printer.printer?.modeltypename">
|
||||
<!-- Only when it DIFFERS from the printer's own type: the two are
|
||||
separate tables but carry the same names in practice. -->
|
||||
<div class="hero-detail"
|
||||
v-if="printer.printer?.modeltypename && printer.printer.modeltypename !== printer.printer?.printertypename">
|
||||
<span class="hero-detail-label">Model type</span>
|
||||
<span class="hero-detail-value">{{ printer.printer.modeltypename }}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user