fix : review MR

This commit is contained in:
2026-02-17 13:53:20 +01:00
parent e63b2c581e
commit 9d95eb40b1
3 changed files with 6 additions and 27 deletions

View File

@@ -25,7 +25,7 @@
<div class="col-span-1">Code</div>
</div>
<div v-if="bovinList.length === 0" class="px-4 py-6 text-slate-400">
Aucun client.
Aucun type de bovin.
</div>
<div v-else>
<div
@@ -34,7 +34,7 @@
class="grid grid-cols-2 border-t gap-4 px-4 py-2 hover:bg-slate-50 cursor-pointer"
@click="goToBovin(bovin.id)"
>
<div class="col-span-1">{{ bovin.name }}</div>
<div class="col-span-1">{{ bovin.label }}</div>
<div class="col-span-1">{{ bovin.code }}</div>
</div>
</div>
@@ -46,11 +46,11 @@
</template>
<script setup lang="ts">
import { getBovinList } from "~/services/bovine-type"
import type { BovinData } from "~/services/dto/bovine-type-data"
import { getBovineTypeList } from "~/services/bovine-type"
import type { BovineTypeData } from "~/services/dto/bovine-type-data"
import { useAuthStore } from "~/stores/auth"
const bovinList = ref<BovinData[]>([])
const bovinList = ref<BovineTypeData[]>([])
const router = useRouter()
const auth = useAuthStore()
@@ -66,6 +66,6 @@ const handleAddClick = (event: Event) => {
onMounted(async () => {
if (!auth.isAdmin) return
bovinList.value = await getBovinList()
bovinList.value = await getBovineTypeList()
})
</script>