feat(subspecialist): enhance specialist details with unit and installation info

- Update Unit interface to allow null installation
- Include specialist.Unit and specialist.Unit.Installation in API includes
- Add Unit and Installation fields to subspecialist detail view
- Simplify list configuration headers and update keys for specialist name
This commit is contained in:
Khafid Prayoga
2025-11-04 09:23:26 +07:00
parent 581eee41f4
commit 3ae81c29fd
4 changed files with 16 additions and 11 deletions

No files matched your search

@@ -121,7 +121,7 @@ const headerPrep: HeaderPrep = {
onMounted(async () => {
try {
const result = await getDetailSubSpecialist(props.subspecialistId, {
includes: 'specialist',
includes: 'specialist,specialist.Unit,specialist.Unit.Installation',
})
if (result.success) {
subSpecialist.value = result.body.data || {}