Skip to content

Commit

Permalink
fix: always display link to other user library on profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Jan 6, 2025
1 parent 55e0c5a commit 8aac2a2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/jelu-ui/src/components/UserDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,15 @@ getUserReviews()
<Avatar
:username="user.login"
/>
<strong>{{ user.login }}</strong>
<strong class="text-2xl">{{ user.login }}</strong>
</div>
<router-link

class="link text-3xl typewriter py-4"
:to="{ name: 'my-books', query: { userId: route.params.userId } }"
>
{{ t('labels.books_from_name', { name: user.login }) }}
</router-link>
<h2
v-if="currentlyReading.length > 0"
class="text-3xl typewriter py-4"
Expand Down Expand Up @@ -172,13 +179,7 @@ getUserReviews()
v-if="events.length > 0"
class="text-3xl typewriter py-4"
>
<router-link

class="link text-3xl typewriter py-4"
:to="{ name: 'my-books', query: { userId: route.params.userId } }"
>
{{ t('home.recent_events') }}
</router-link>
{{ t('home.recent_events') }}
</h2>
<div
v-if="events.length > 0"
Expand Down

0 comments on commit 8aac2a2

Please sign in to comment.