Skip to content

Commit

Permalink
Merge pull request #1177 from EmpowerPlastic/6093-issues-related-to-m…
Browse files Browse the repository at this point in the history
…arketplace-certificate

6093 issues related to marketplace certificate
  • Loading branch information
alexander-astrand authored Feb 12, 2024
2 parents d74d0d6 + 042b6be commit 5a344b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions frontend/marketplace/src/components/CertificateCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,36 @@ const onGeneratePDF = () => {
qrCodeUrl.value,
);
notifyer.success("Certificate downloaded successfully");
showSpinner.value = false;
resetValues();
} catch (e) {
console.error(e);
notifyer.error("Something went wrong");
}
};
const resetValues = () => {
certificateData.value = null;
creditData.value = null;
materialData.value = [];
eventData.value = null;
plasticValuesString.value = "";
locations.value = [];
mediaFileUrls.value = [];
binaryFilesUrls.value = [];
collectionAmount.value = 0;
issuanceDate.value = "";
applicantData.value = "";
applicantDataDescription.value = "";
materialDetails.value = [];
currentHeaders.value = [];
primaryHeaders.value = [];
secondaryHeaders.value = [];
retiredDate.value = "";
allData.value = [];
pagesData.value = [];
};
const queryCertificateData = () => {
const { result, error, onResult } = useQuery(GET_CREDIT_OFFSET_CERTIFICATE, {
id: ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const GET_CREDIT_OFFSET_CERTIFICATE = gql`
denom
retiringEntityName
retiringEntityAdditionalData
timestamp
walletId
amount
}
Expand Down

0 comments on commit 5a344b0

Please sign in to comment.