|
|
@ -121,6 +121,12 @@ import { AppString } from "../constants/app"; |
|
|
|
components: { |
|
|
|
EntityIcon, |
|
|
|
}, |
|
|
|
emits: [ |
|
|
|
"toggle-selection", |
|
|
|
"show-identicon", |
|
|
|
"show-gifted-dialog", |
|
|
|
"open-offer-dialog", |
|
|
|
], |
|
|
|
}) |
|
|
|
export default class ContactListItem extends Vue { |
|
|
|
@Prop({ required: true }) contact!: Contact; |
|
|
@ -151,14 +157,12 @@ export default class ContactListItem extends Vue { |
|
|
|
return contact; |
|
|
|
} |
|
|
|
|
|
|
|
@Emit("show-gifted-dialog") |
|
|
|
emitShowGiftedDialog(fromDid: string, toDid: string) { |
|
|
|
return { fromDid, toDid }; |
|
|
|
this.$emit("show-gifted-dialog", fromDid, toDid); |
|
|
|
} |
|
|
|
|
|
|
|
@Emit("open-offer-dialog") |
|
|
|
emitOpenOfferDialog(did: string, name: string | undefined) { |
|
|
|
return { did, name }; |
|
|
|
this.$emit("open-offer-dialog", did, name); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|