mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-31 18:17:29 +01:00
Update index.vue
Update Item page to correct the JSON return for labels and add a fall back if no labels are collected.
This commit is contained in:
@@ -485,7 +485,8 @@
|
||||
{{ item ? item.name : "" }}
|
||||
</h1>
|
||||
<div class="flex flex-wrap gap-2 pb-1">
|
||||
<LabelChip v-for="label in item?.labels || []" :key="label.id" :label="label" size="sm" />
|
||||
<LabelChip v-for="label in item?.labels || []" :key="label.id" :label="label.name" size="sm" />
|
||||
<span v-if="item?.labels.length === 0" class="text-gray-500">No labels</span>
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-1 text-wrap text-xs">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user