Browse Source

rename variables for clarity

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

Loading…
Cancel
Save