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