Device identity, collector enrollment file, and network device fixes
This commit is contained in:
@@ -36,7 +36,9 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="item in machines" :key="item.assetid" class="clickable-row" @click="$router.push(`/machines/${item.machine?.machineid || item.assetid}`)">
|
||||
<tr v-for="item in machines" :key="item.assetid"
|
||||
:class="{ 'clickable-row': item.machine?.machineid }"
|
||||
@click="item.machine?.machineid && $router.push(`/machines/${item.machine.machineid}`)">
|
||||
<td>
|
||||
{{ item.assetnumber }}<template v-if="item.dualpathpartner"> / {{ item.dualpathpartner.assetnumber }}</template>
|
||||
</td>
|
||||
@@ -58,12 +60,20 @@
|
||||
</td>
|
||||
<td>{{ item.locationname || '-' }}</td>
|
||||
<td class="actions" @click.stop>
|
||||
<!-- /machines/:id keys on machineid, the plugin extension id, NOT
|
||||
the assetid. Falling back to the assetid lands on whichever
|
||||
machine happens to carry that number: a wrong page that looks
|
||||
right, which is worse than a 404 (see the same fix in
|
||||
EnforcementReports and the warning in BackupHistory). With no
|
||||
machineid there is no page to link to, so show nothing. -->
|
||||
<router-link
|
||||
:to="`/machines/${item.machine?.machineid || item.assetid}`"
|
||||
v-if="item.machine?.machineid"
|
||||
:to="`/machines/${item.machine.machineid}`"
|
||||
class="btn btn-secondary btn-sm"
|
||||
>
|
||||
View
|
||||
</router-link>
|
||||
<span v-else>-</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="machines.length === 0">
|
||||
|
||||
Reference in New Issue
Block a user