chore: update rest of the codebase to use new getDisplayName() function
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
ace66980bf
commit
ab87fb681c
9 changed files with 10 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
<NuxtLink class="user-item" :href="`/me/${user.uuid}`" tabindex="0">
|
||||
<Avatar :user="props.user" class="user-avatar"/>
|
||||
|
||||
<span class="user-display-name">{{ displayName }}</span>
|
||||
<span class="user-display-name">{{ getDisplayName(props.user) }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
|
@ -13,7 +13,6 @@ const props = defineProps<{
|
|||
user: UserResponse
|
||||
}>();
|
||||
|
||||
const displayName = props.user.display_name || props.user.username
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue