Fixed ClaimedBy column

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia 2024-09-10 10:53:29 +02:00
parent 60a509cedb
commit ce6fe19bb7
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
2 changed files with 3 additions and 5 deletions

View File

@ -80,7 +80,6 @@ export default {
label: 'Claimed By', label: 'Claimed By',
value: 'passthroughClaim.userName', value: 'passthroughClaim.userName',
sort: ['passthroughClaim.userName'], sort: ['passthroughClaim.userName'],
}); });
} }

View File

@ -70,9 +70,8 @@ export default {
headers.push( { headers.push( {
name: 'claimed', name: 'claimed',
label: 'Claimed By', label: 'Claimed By',
value: 'passthroughClaim.userName', value: 'claimedBy',
sort: ['passthroughClaim.userName'], sort: ['claimedBy'],
}); });
} }
@ -154,7 +153,7 @@ export default {
</div> </div>
</template> </template>
<template #cell:claimed="{row}"> <template #cell:claimed="{row}">
<span v-if="row.isEnabled">{{ row.claimedBy }}</span> <span v-if="row.status.enabled">{{ row.claimedBy }}</span>
<span v-else class="text-muted">&mdash;</span> <span v-else class="text-muted">&mdash;</span>
</template> </template>
</ResourceTable> </ResourceTable>