Tab titles name the record; Guides reach a site and the contract surface
This commit is contained in:
@@ -160,6 +160,7 @@ import { usbApi } from '@/api'
|
||||
import Modal from '@/components/Modal.vue'
|
||||
import { useToast } from '@/composables/toast'
|
||||
import { apiError } from '@/utils/apiError'
|
||||
import { setRecordTitle } from '@/composables/pageTitle'
|
||||
const toast = useToast()
|
||||
|
||||
const route = useRoute()
|
||||
@@ -181,6 +182,7 @@ async function loadDevice() {
|
||||
try {
|
||||
const response = await usbApi.get(route.params.id)
|
||||
device.value = response.data.data
|
||||
setRecordTitle(device.value?.label || device.value?.serialnumber)
|
||||
} catch (error) {
|
||||
console.error('Error loading USB device:', error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user