Tab titles name the record; Guides reach a site and the contract surface
This commit is contained in:
@@ -59,6 +59,7 @@ import { useRoute } from 'vue-router'
|
||||
import api from '@/api'
|
||||
import { apiError } from '@/utils/apiError'
|
||||
import GuideBlocks from '../components/GuideBlocks.vue'
|
||||
import { setRecordTitle } from '@/composables/pageTitle'
|
||||
|
||||
const route = useRoute()
|
||||
const guide = ref(null)
|
||||
@@ -146,6 +147,7 @@ async function load () {
|
||||
try {
|
||||
const response = await api.get('/guides/' + route.params.slug)
|
||||
guide.value = response.data?.data || response.data
|
||||
setRecordTitle(guide.value?.title)
|
||||
loadProgress()
|
||||
} catch (err) {
|
||||
error.value = apiError(err, 'Could not load this guide')
|
||||
|
||||
Reference in New Issue
Block a user