Browse Source

improve messages on invite page

Trent Larson 2 months ago
parent
commit
f4dbebb8de
  1. 10
      src/views/InviteOneView.vue

10
src/views/InviteOneView.vue

@ -64,7 +64,7 @@
<fa <fa
icon="trash-can" icon="trash-can"
class="text-red-600 text-xl ml-2 mr-2 cursor-pointer" class="text-red-600 text-xl ml-2 mr-2 cursor-pointer"
@click="deleteInvite(invite.inviteIdentifier)" @click="deleteInvite(invite.inviteIdentifier, invite.notes)"
/> />
</td> </td>
</tr> </tr>
@ -154,9 +154,9 @@ export default class InviteOneView extends Vue {
group: "alert", group: "alert",
type: "success", type: "success",
title: "Copied", title: "Copied",
text: "Link for invite " + inviteId + " is copied to clipboard.", text: "Your clipboard now contains the link for invite " + inviteId,
}, },
3000, 5000,
); );
} }
@ -229,13 +229,13 @@ export default class InviteOneView extends Vue {
); );
} }
deleteInvite(inviteId: string) { deleteInvite(inviteId: string, notes: string) {
this.$notify( this.$notify(
{ {
group: "modal", group: "modal",
type: "confirm", type: "confirm",
title: "Delete Invite?", title: "Delete Invite?",
text: "Are you sure you want to erase this invite? (There is no undo.)", text: `Are you sure you want to erase the invite for "${notes}"? (There is no undo.)`,
onYes: async () => { onYes: async () => {
const headers = await getHeaders(this.activeDid); const headers = await getHeaders(this.activeDid);
try { try {

Loading…
Cancel
Save