Network device form: use asset statuses instead of legacy machine statuses

Last form still reading /api/statuses (MachineStatus); repoint to
assetsApi.statuses so its status dropdown matches the rest of the app.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-06-26 09:17:15 -04:00
parent e1948a4774
commit 7db011cb78

View File

@@ -226,7 +226,7 @@ import {
networkApi,
vendorsApi,
locationsApi,
statusesApi,
assetsApi,
businessunitsApi
} from '../../api'
@@ -307,7 +307,7 @@ async function loadLocations() {
async function loadStatuses() {
try {
const response = await statusesApi.list({ perpage: 100 })
const response = await assetsApi.statuses.list()
statuses.value = response.data.data || []
} catch (err) {
console.error('Error loading statuses:', err)