From d829b97d54a2d3c0ed66af725e47eae54fa0f086 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Fri, 15 Nov 2024 19:05:58 +0100 Subject: [PATCH] Fix deleting credentials from wallet --- web/src/admin/IdentityDetails.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/admin/IdentityDetails.vue b/web/src/admin/IdentityDetails.vue index 243b0b0..a1d4573 100644 --- a/web/src/admin/IdentityDetails.vue +++ b/web/src/admin/IdentityDetails.vue @@ -88,7 +88,7 @@ {{ credential.type.filter(t => t !== "VerifiableCredential").join(', ') }} {{ credential.issuer }} - @@ -173,12 +173,12 @@ export default { this.fetchData() }) }, - deleteCredential(did, credentialId) { + deleteCredential(credentialId) { if (confirm("Are you sure you want to delete this credential?") !== true) { return } this.fetchError = undefined - this.$api.delete(`api/proxy/internal/vcr/v2/holder/${did}/vc/${encodeURIComponent(credentialId)}`) + this.$api.delete(`api/proxy/internal/vcr/v2/holder/${encodeURIComponent(this.$route.params.subjectID)}/vc/${encodeURIComponent(credentialId)}`) .then(data => { if (data.reason) { this.fetchError = data.reason