Tab titles name the record; Guides reach a site and the contract surface
This commit is contained in:
@@ -43,7 +43,7 @@ export default [
|
||||
path: 'reports/calibration',
|
||||
name: 'calibration-report',
|
||||
component: () => import('./views/CalibrationReport.vue'),
|
||||
meta: { plugin: 'measuringtools' }
|
||||
meta: { plugin: 'measuringtools', title: 'Calibration Report' }
|
||||
},
|
||||
{
|
||||
path: 'settings/measuringtooltypes',
|
||||
|
||||
@@ -172,6 +172,7 @@ import CustomFieldsSection from '@/components/CustomFieldsSection.vue'
|
||||
import PluginAssetPanels from '@/components/PluginAssetPanels.vue'
|
||||
import AssetRelationships from '@/components/AssetRelationships.vue'
|
||||
import { useIdentifierFlags } from '@/composables/identifierSettings'
|
||||
import { setRecordTitle } from '@/composables/pageTitle'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
@@ -193,6 +194,7 @@ onMounted(async () => {
|
||||
? await measuringtoolsApi.getByAsset(route.params.assetid)
|
||||
: await measuringtoolsApi.get(route.params.id)
|
||||
tool.value = response.data.data
|
||||
setRecordTitle(tool.value?.assetnumber || tool.value?.name)
|
||||
} catch (err) {
|
||||
console.error('Error loading measuring tool:', err)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user