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>
|
||||
|
||||
Reference in New Issue
Block a user