improve messages on invite page
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<fa
|
||||
icon="trash-can"
|
||||
class="text-red-600 text-xl ml-2 mr-2 cursor-pointer"
|
||||
@click="deleteInvite(invite.inviteIdentifier)"
|
||||
@click="deleteInvite(invite.inviteIdentifier, invite.notes)"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -154,9 +154,9 @@ export default class InviteOneView extends Vue {
|
||||
group: "alert",
|
||||
type: "success",
|
||||
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(
|
||||
{
|
||||
group: "modal",
|
||||
type: "confirm",
|
||||
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 () => {
|
||||
const headers = await getHeaders(this.activeDid);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user