replace remaining didJwt.createJwt calls with one that checks for did:peer
This commit is contained in:
@@ -157,7 +157,6 @@ import {
|
||||
getHeaders,
|
||||
ErrorResult,
|
||||
} from "@/libs/endorserServer";
|
||||
import * as libsUtil from "@/libs/util";
|
||||
|
||||
@Component({
|
||||
methods: { claimSpecialDescription },
|
||||
@@ -264,8 +263,6 @@ export default class QuickActionBvcBeginView extends Vue {
|
||||
|
||||
async record() {
|
||||
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
|
||||
@@ -277,9 +274,8 @@ export default class QuickActionBvcBeginView extends Vue {
|
||||
if (!record) {
|
||||
return { type: "error", error: "Record not found." };
|
||||
}
|
||||
const identity = await libsUtil.getIdentity(this.activeDid);
|
||||
return createAndSubmitConfirmation(
|
||||
identity,
|
||||
this.activeDid,
|
||||
record.claim as GenericVerifiableCredential,
|
||||
record.id,
|
||||
record.handleId,
|
||||
@@ -313,7 +309,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
||||
const giveResult = await createAndSubmitGive(
|
||||
axios,
|
||||
this.apiServer,
|
||||
identity,
|
||||
this.activeDid,
|
||||
undefined,
|
||||
this.activeDid,
|
||||
this.description,
|
||||
|
||||
Reference in New Issue
Block a user