@@ -76,7 +76,8 @@
@@ -134,80 +135,104 @@
-
- {{ $t("passportView.policyAgreement.decline") }}
- {{ $t("passportView.policyAgreement.agree") }}
-
-
-
- {{ detailsTitle }}
-
-
-
-
-
-
-
-
-
-
-
- {{ $t("passportView.policyAgreement.declineModal.question") }}
-
-
-
- {{ $t("passportView.policyAgreement.declineModal.homepage") }}
-
-
+
{{
- $t("passportView.policyAgreement.declineModal.cancel")
- }}{{ $t("passportView.policyAgreement.decline") }}
{{
- $t("passportView.policyAgreement.declineModal.confirm")
- }}{{ $t("passportView.policyAgreement.agree") }}
+
+
+ {{ detailsTitle }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("passportView.policyAgreement.declineModal.question") }}
+
+
+
+ {{ $t("passportView.policyAgreement.declineModal.homepage") }}
+
+
+
+
+ {{
+ $t("passportView.policyAgreement.declineModal.cancel")
+ }}
+ {{
+ $t("passportView.policyAgreement.declineModal.confirm")
+ }}
+
+
@@ -397,7 +422,7 @@ export default {
processId: null,
backendService: null,
parsedPolicyConstraints: {},
- error: true,
+ error: false,
errorObj: {
title: "Something went wrong while returning the passport!",
description: "We are sorry for that, you can retry or try again later",
@@ -551,6 +576,7 @@ export default {
"The request took too long... Please retry or try again later.";
this.status = 408;
this.statusText = "Request Timeout";
+ this.error= true;
}
this.searchResponse = result;
} catch (e) {
@@ -581,6 +607,7 @@ export default {
"It was not possible to display the policies and contracts.";
this.status = 500;
this.statusText = "Internal Server Error";
+ this.error= true;
}
// Extract policies
@@ -592,6 +619,7 @@ export default {
"It was not possible to display the policies and contracts.";
this.status = 500;
this.statusText = "Internal Server Error";
+ this.error= true;
}else{
// Check if policies array has elements and then access the @id of the first element
const firstPolicyObj = this.policies[0];
@@ -606,6 +634,7 @@ export default {
"It was not possible to display the policies and contracts.";
this.status = 500;
this.statusText = "Internal Server Error";
+ this.error= true;
}else{
// Commit the contract ID to the store
this.$store.commit("setContractToSign", {
@@ -643,6 +672,7 @@ export default {
"The request took too long... Please retry or try again later.";
this.status = 408;
this.statusText = "Request Timeout";
+ this.error= true;
}
this.data = result;
} catch (e) {
@@ -695,6 +725,7 @@ export default {
"The request took too long... Please retry or try again later.";
this.errorObj.status = 408;
this.errorObj.statusText = "Request Timeout";
+ this.error= true;
}
this.data = result;
} catch (e) {
@@ -792,6 +823,7 @@ export default {
this.errorObj.statusText = jsonUtil.exists("statusText", response)
? response["statusText"]
: "Internal Server Error";
+ this.error= true;
return response;
}
@@ -802,6 +834,7 @@ export default {
"It was not possible to complete the passport transfer.";
this.errorObj.status = 400;
this.errorObj.statusText = "Bad Request";
+ this.error= true;
return null;
}
// Check if reponse content was successfull and if not print error comming message from backend
@@ -818,6 +851,7 @@ export default {
this.errorObj.statusText = jsonUtil.exists("statusText", response)
? response["statusText"]
: "Not found";
+ this.error= true;
}
return response;
@@ -859,6 +893,7 @@ export default {
this.errorObj.statusText = jsonUtil.exists("statusText", response)
? response["statusText"]
: "Internal Server Error";
+ this.error= true;
return response;
}
@@ -869,6 +904,7 @@ export default {
"It was not possible to complete the passport transfer.";
this.errorObj.status = 400;
this.errorObj.statusText = "Bad Request";
+ this.error= true;
return null;
}
@@ -886,6 +922,7 @@ export default {
this.errorObj.statusText = jsonUtil.exists("statusText", response)
? response["statusText"]
: "Not found";
+ this.error= true;
}
return response;
@@ -918,6 +955,7 @@ export default {
this.errorObj.statusText = jsonUtil.exists("statusText", response)
? response["statusText"]
: "Internal Server Error";
+ this.error= true;
return response;
}
@@ -928,6 +966,7 @@ export default {
"It was not possible to complete the passport transfer.";
this.errorObj.status = 400;
this.errorObj.statusText = "Bad Request";
+ this.error= true;
return null;
}
@@ -945,6 +984,7 @@ export default {
this.errorObj.statusText = jsonUtil.exists("statusText", response)
? response["statusText"]
: "Not found";
+ this.error= true;
}
return response;
diff --git a/src/views/SearchView.vue b/src/views/SearchView.vue
index bde506185..23f8ab37a 100644
--- a/src/views/SearchView.vue
+++ b/src/views/SearchView.vue
@@ -49,7 +49,7 @@
{{ $t("searchView.errorCameraOff") }}
{{ $t("searchView.errorTypeID") }}
-
{{ $t(error) }}
+
{{ $t(`searchView.cameraError.${qrError}`) }}