Browse Source

rename variables for clarity

split_build_process
Trent Larson 1 month ago
parent
commit
fb0d855fac
  1. 11
      src/views/NewEditProjectView.vue

11
src/views/NewEditProjectView.vue

@ -590,12 +590,12 @@ export default class NewEditProjectView extends Vue {
if (settings.partnerApiServer) {
partnerServer = settings.partnerApiServer;
}
const trustrootsUrl = partnerServer + "/api/partner/link";
const endorserPartnerUrl = partnerServer + "/api/partner/link";
const timeSafariUrl = window.location.origin + "/claim/" + jwtId;
const content = this.fullClaim.name + " - see " + timeSafariUrl;
// Why does IntelliJ not see matching types?
const payload = serializeEvent(signedPayload);
const trustrootsParams = {
const partnerParams = {
jwtId: jwtId,
linkCode: linkCode,
inputJson: JSON.stringify(content),
@ -603,12 +603,11 @@ export default class NewEditProjectView extends Vue {
pubKeyImage: payload,
pubKeySigHex: signedPayload.sig,
};
const fullTrustrootsUrl = trustrootsUrl;
const headers = await getHeaders(this.activeDid);
try {
const linkResp = await this.axios.post(
fullTrustrootsUrl,
trustrootsParams,
endorserPartnerUrl,
partnerParams,
{ headers },
);
if (linkResp.status === 201) {
@ -647,7 +646,7 @@ export default class NewEditProjectView extends Vue {
title: `Error Sending to ${serviceName}`,
text: errorMessage,
},
5000,
7000,
);
}
}

Loading…
Cancel
Save