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