diff --git a/src/components/ContactNameDialog.vue b/src/components/ContactNameDialog.vue index 123a083..7a9c4ec 100644 --- a/src/components/ContactNameDialog.vue +++ b/src/components/ContactNameDialog.vue @@ -51,10 +51,12 @@ export default class ContactNameDialog extends Vue { message?: string, saveCallback?: (name?: string) => void, cancelCallback?: () => void, + defaultName?: string, ) { this.cancelCallback = cancelCallback || this.cancelCallback; this.saveCallback = saveCallback || this.saveCallback; this.message = message ?? this.message; + this.newText = defaultName ?? ""; this.title = title ?? this.title; this.visible = true; } diff --git a/src/views/InviteOneView.vue b/src/views/InviteOneView.vue index 82543b0..bbb1783 100644 --- a/src/views/InviteOneView.vue +++ b/src/views/InviteOneView.vue @@ -110,7 +110,7 @@ v-if="invite.redeemedBy && !contactsRedeemed[invite.redeemedBy]" icon="plus" class="bg-green-600 text-white px-1 py-1 rounded-full cursor-pointer" - @click="addNewContact(invite.redeemedBy)" + @click="addNewContact(invite.redeemedBy, invite.notes)" />