Skip to content

Commit

Permalink
Merge pull request #1753 from okTurtles/1746-show-user-profile-cards-…
Browse files Browse the repository at this point in the history
…when-user-clicks-name-in-payments

Show user profile cards when user clicks name in payments
  • Loading branch information
taoeffect authored Oct 6, 2023
2 parents 4c3e61a + ab85416 commit 70e403e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/views/containers/payments/payment-row/PaymentRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
slot(name='cellUser')
template(v-if='!$slots["cellUser"]')
.c-user
avatar-user.c-avatar(:username='payment.username' size='xs')
strong.c-name {{payment.displayName}}
profile-card(
:username='payment.username'
direction='top-left'
)
avatar-user.c-avatar(:username='payment.username' size='xs')
strong.c-name {{payment.displayName}}

span.c-user-date(:class='payment.isLate ? "pill is-danger" : "has-text-1"') {{ humanDate(payment.date) }}

Expand All @@ -33,11 +37,13 @@

<script>
import AvatarUser from '@components/AvatarUser.vue'
import ProfileCard from '@components/ProfileCard.vue'
import { humanDate } from '@model/contracts/shared/time.js'
export default ({
name: 'PaymentRowSent',
components: {
ProfileCard,
AvatarUser
},
props: {
Expand Down

0 comments on commit 70e403e

Please sign in to comment.