show something to indicate claims were sent (mostly in BVC screens)

This commit is contained in:
2024-04-28 18:36:06 -06:00
parent 8a9bb100ea
commit ddd32e7f44
5 changed files with 18 additions and 19 deletions

View File

@@ -260,7 +260,7 @@ export default class QuickActionBvcBeginView extends Vue {
title: "Error",
text: "There was an error retrieving today's claims to confirm.",
},
-1,
5000,
);
}
this.loadingConfirms = false;
@@ -277,6 +277,8 @@ export default class QuickActionBvcBeginView extends Vue {
try {
const identity = await libsUtil.getIdentity(this.activeDid);
this.$notify({ group: "alert", type: "toast", title: "Sent..." }, 1000);
// in parallel, make a confirmation for each selected claim and send them all to the server
const confirmResults = await Promise.allSettled(
this.claimsToConfirmSelected.map(async (jwtId) => {
@@ -312,7 +314,7 @@ export default class QuickActionBvcBeginView extends Vue {
title: "Error",
text: `There was an error sending ${howMany} of the confirmations.`,
},
-1,
5000,
);
}
@@ -342,7 +344,7 @@ export default class QuickActionBvcBeginView extends Vue {
(giveResult as ErrorResult)?.error?.userMessage ||
"There was an error sending that give.",
},
-1,
5000,
);
}
}
@@ -367,7 +369,7 @@ export default class QuickActionBvcBeginView extends Vue {
title: "Success",
text: actions,
},
-1,
3000,
);
}
@@ -381,7 +383,7 @@ export default class QuickActionBvcBeginView extends Vue {
title: "Error",
text: error.userMessage || "There was an error sending claims.",
},
-1,
5000,
);
}
}