Model type shown only when it differs from the asset type
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user