diff --git a/plugins/machines/frontend/views/MachinesList.vue b/plugins/machines/frontend/views/MachinesList.vue index b02123e..19732aa 100644 --- a/plugins/machines/frontend/views/MachinesList.vue +++ b/plugins/machines/frontend/views/MachinesList.vue @@ -36,7 +36,9 @@ - + {{ item.assetnumber }} @@ -58,12 +60,20 @@ {{ item.locationname || '-' }} + View + - diff --git a/plugins/network/frontend/views/NetworkDeviceDetail.vue b/plugins/network/frontend/views/NetworkDeviceDetail.vue index 3e984f1..6921b40 100644 --- a/plugins/network/frontend/views/NetworkDeviceDetail.vue +++ b/plugins/network/frontend/views/NetworkDeviceDetail.vue @@ -33,22 +33,26 @@ {{ heroWarranty.label }} +
-
- Asset # - {{ device.assetnumber }} +
+ Asset # + {{ device.assetnumber }}
-
- Serial - {{ device.serialnumber }} +
+ Serial + {{ device.serialnumber }}
-
- Location - {{ device.locationname }} +
+ Location + {{ device.locationname }}
-
- Business Unit - {{ device.businessunitname }} +
+ Business Unit + {{ device.businessunitname }}
diff --git a/plugins/network/frontend/views/NetworkDeviceForm.vue b/plugins/network/frontend/views/NetworkDeviceForm.vue index c53b7a9..526e9d9 100644 --- a/plugins/network/frontend/views/NetworkDeviceForm.vue +++ b/plugins/network/frontend/views/NetworkDeviceForm.vue @@ -161,7 +161,7 @@ @@ -395,6 +395,15 @@ const generatedAssetNumber = computed(() => { }) const vendors = ref([]) const models = ref([]) + +// Models belong to a vendor, so picking one narrows the list - the same +// behaviour PCForm, MachineForm and PrinterForm have. With no vendor chosen the +// whole catalogue shows, rather than an empty dropdown that reads as "no models +// exist" when it means "pick a vendor first". +const filteredModels = computed(() => { + if (!form.value.vendorid) return models.value + return models.value.filter(m => m.vendorid === form.value.vendorid) +}) const locations = ref([]) const statuses = ref([]) const businessUnits = ref([])