diff --git a/dpp-frontend/src/assets/styles/components/general/passportHeader.scss b/dpp-frontend/src/assets/styles/components/general/passportHeader.scss index 119e0d214..88d8c60fc 100644 --- a/dpp-frontend/src/assets/styles/components/general/passportHeader.scss +++ b/dpp-frontend/src/assets/styles/components/general/passportHeader.scss @@ -30,6 +30,9 @@ margin-top: 6em; padding: 14px 42px 14px 42px; } +.reload-verification { + padding-top: 16px; +} .proof_list { padding-left: 12px; } diff --git a/dpp-frontend/src/components/passport/PassportHeader.vue b/dpp-frontend/src/components/passport/PassportHeader.vue index 7dafe2a08..fe3483527 100644 --- a/dpp-frontend/src/components/passport/PassportHeader.vue +++ b/dpp-frontend/src/components/passport/PassportHeader.vue @@ -137,6 +137,25 @@ +
+
  • + {{ $t("passportHeader.status") }}: + + {{ + reloadVerificationData.status === 200 + ? $t("passportHeader.verified") + : $t("passportHeader.unverified") + }} + + +
  • +
  • + {{ $t("passportHeader.message") }}: + + {{ reloadVerificationData.message }} + +
  • +
    { + this.reloadVerificationData.status = response.status; + this.reloadVerificationData.message = response.message; + }); }, }, }; - - diff --git a/dpp-frontend/src/services/BackendService.js b/dpp-frontend/src/services/BackendService.js index 664a385af..ba8cabcea 100644 --- a/dpp-frontend/src/services/BackendService.js +++ b/dpp-frontend/src/services/BackendService.js @@ -466,18 +466,10 @@ export default class BackendService { } async reloadVerification(authentication, body) { - console.log(body); - console.log(this.getHeaders(authentication)); return new Promise((resolve) => { axios - .post(`${BACKEND_URL}/api/verification/verify`, body, { - headers: { - Accept: "application/vc+ld+json", - Authorization: "Bearer " + authentication.getAccessToken(), - }, - }) + .post(`${BACKEND_URL}/api/verification/verify`, body, this.getHeaders(authentication)) .then((response) => { - console.log(response.data); resolve(response.data); }) .catch((e) => { diff --git a/dpp-frontend/src/translations/de.json b/dpp-frontend/src/translations/de.json index 26ae6a83f..d0a23e192 100644 --- a/dpp-frontend/src/translations/de.json +++ b/dpp-frontend/src/translations/de.json @@ -153,6 +153,11 @@ "issuedAt": "Ausgestellt am", "expirationDate": "Läuft ab am", "reloadVerification": "Verifizierung aktualisieren", + "verified": "Verifiziert", + "status": "Status", + "message": "Nachricht", + "error": "Fehler", + "unverified": "Nicht Verifiziert", "proof": "Nachweis", "type": "Typ", "wallet": "Brieftasche", @@ -533,4 +538,4 @@ "media": "Medien" } } -} \ No newline at end of file +} diff --git a/dpp-frontend/src/translations/en.json b/dpp-frontend/src/translations/en.json index cda8ceac4..5f2b0e0e3 100644 --- a/dpp-frontend/src/translations/en.json +++ b/dpp-frontend/src/translations/en.json @@ -153,6 +153,11 @@ "issuedAt": "Issued at", "expirationDate": "Expires at", "reloadVerification": "Refresh verification", + "verified": "Verified", + "status": "Status", + "message": "Message", + "error": "Error", + "unverified": "Not Verified", "proof": "Proof", "type": "Type", "wallet": "Wallet", @@ -533,4 +538,4 @@ "media": "Media" } } -} \ No newline at end of file +}