Tab titles name the record; Guides reach a site and the contract surface
This commit is contained in:
@@ -153,6 +153,7 @@ import { withBase } from '@/utils/basePath'
|
||||
import { employeesApi, usbApi, notificationsApi } from '@/api'
|
||||
import { isPluginEnabled, loadEnabledPlugins } from '@/composables/enabledPlugins'
|
||||
import { useToast } from '@/composables/toast'
|
||||
import { setRecordTitle } from '@/composables/pageTitle'
|
||||
const toast = useToast()
|
||||
|
||||
const route = useRoute()
|
||||
@@ -223,6 +224,7 @@ async function loadEmployee() {
|
||||
try {
|
||||
const response = await employeesApi.lookup(route.params.sso)
|
||||
employee.value = response.data.data
|
||||
setRecordTitle(employee.value?.name || employee.value?.sso)
|
||||
} catch (err) {
|
||||
console.error('Error loading employee:', err)
|
||||
error.value = 'Employee not found'
|
||||
|
||||
Reference in New Issue
Block a user