Browse Source

Merge branch 'build-improvement' of ssh://173.199.124.46:222/trent_larson/crowd-funder-for-time-pwa into build-improvement

pull/158/head
Matthew Raymer 2 weeks ago
parent
commit
8b2c6714ec
  1. 12
      src/components/ContactListItem.vue
  2. 4
      src/libs/util.ts

12
src/components/ContactListItem.vue

@ -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);
}
/**

4
src/libs/util.ts

@ -191,9 +191,9 @@ export const nameForDid = (
did: string,
): string => {
if (did === activeDid) {
return "you";
return "You";
}
const contact = R.find((con) => con.did == did, contacts);
const contact = R.find((con) => con.did === did, contacts);
return nameForContact(contact);
};

Loading…
Cancel
Save