-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build detail view for issued credentials
- Loading branch information
Showing
10 changed files
with
76 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<p v-if="fetchError" class="m-4">Error: {{ fetchError }}</p> | ||
<CredentialDetails :credential="credential" v-if="credential" /> | ||
</template> | ||
|
||
<script> | ||
import CredentialDetails from './CredentialDetails.vue' | ||
export default { | ||
components: { | ||
CredentialDetails | ||
}, | ||
data() { | ||
return { | ||
fetchError: '', | ||
credential: undefined, | ||
} | ||
}, | ||
mounted() { | ||
this.$api.get('api/issuer/vc?id=' + encodeURIComponent(this.$route.params.credentialID)) | ||
.then(data => { | ||
this.credentials = data | ||
}) | ||
.catch(response => { | ||
this.fetchError = response | ||
}) | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<p v-if="fetchError" class="m-4">Error: {{ fetchError }}</p> | ||
<CredentialDetails :credential="credential" v-if="credential" /> | ||
</template> | ||
|
||
<script> | ||
import CredentialDetails from './CredentialDetails.vue' | ||
export default { | ||
components: { | ||
CredentialDetails | ||
}, | ||
data() { | ||
return { | ||
fetchError: undefined, | ||
credential: undefined | ||
} | ||
}, | ||
mounted() { | ||
this.$api.get('api/id/' + encodeURIComponent(this.$route.params.subjectID)) | ||
.then(data => { | ||
this.credential = data.wallet_credentials.filter(c => c.id === this.$route.params.credentialID)[0] | ||
}) | ||
.catch(response => { | ||
this.fetchError = response | ||
}) | ||
}, | ||
} | ||
</script> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters