{
- EventBus.$emit("success", this.$axiosErrorMessage(response));
+ EventBus.$emit("success");
this.closeDialog();
})
.catch((error) => {
diff --git a/frontend/src/components/ManageSchema.vue b/frontend/src/components/ManageSchema.vue
index 742f7e868..0ac563647 100644
--- a/frontend/src/components/ManageSchema.vue
+++ b/frontend/src/components/ManageSchema.vue
@@ -62,6 +62,11 @@
>
{{ attribute }}
+ $vuetify.icons.asterisk
@@ -106,6 +111,7 @@ import { adminService } from "@/services";
import TrustedIssuers from "@/components/TrustedIssuers.vue";
import CredentialDefinitions from "@/components/CredentialDefinitions.vue";
import VBpaButton from "@/components/BpaButton";
+import { CredentialTypes } from "@/constants";
export default {
name: "ManageSchema",
props: {
@@ -143,6 +149,9 @@ export default {
};
},
computed: {
+ typeIsJsonLD() {
+ return this.schema.type === CredentialTypes.JSON_LD.type;
+ },
schema: {
get() {
return this.value;
@@ -158,12 +167,12 @@ export default {
key: "schema-attributes",
},
];
- if (this.credentialDefinitions)
+ if (this.credentialDefinitions && !this.typeIsJsonLD)
tabs.push({
title: this.$t("component.manageSchema.tabs.credentialDefinitions"),
key: "credential-definitions",
});
- if (!this.schema.isMine && this.trustedIssuers)
+ if ((!this.schema.isMine || this.typeIsJsonLD) && this.trustedIssuers)
tabs.push({
title: this.$t("component.manageSchema.tabs.trustedIssuers"),
key: "trusted-issuers",
diff --git a/frontend/src/components/MyCredentialList.vue b/frontend/src/components/MyCredentialList.vue
index b47427db1..6a681bcf0 100644
--- a/frontend/src/components/MyCredentialList.vue
+++ b/frontend/src/components/MyCredentialList.vue
@@ -120,6 +120,10 @@ export default {
type: Boolean,
default: false,
},
+ useJsonLd: {
+ type: Boolean,
+ default: false,
+ },
},
components: {
NewMessageIcon,
@@ -136,6 +140,17 @@ export default {
};
},
computed: {
+ queryFilter() {
+ let q = "";
+ if (this.useIndy && this.useJsonLd) {
+ q = "?types=INDY&types=JSON_LD";
+ } else if (this.useIndy) {
+ q = "?types=INDY";
+ } else if (this.useJsonLd) {
+ q = "?types=JSON_LD";
+ }
+ return q;
+ },
credentialNotifications() {
return this.$store.getters.credentialNotifications;
},
@@ -159,11 +174,7 @@ export default {
methods: {
fetch(type) {
this.$axios
- .get(
- `${this.$apiBaseUrl}/wallet/${type}${
- this.useIndy ? "?types=INDY" : ""
- }`
- )
+ .get(`${this.$apiBaseUrl}/wallet/${type}${this.queryFilter}`)
.then((result) => {
if (Object.prototype.hasOwnProperty.call(result, "data")) {
this.isBusy = false;
diff --git a/frontend/src/components/Profile.vue b/frontend/src/components/Profile.vue
index 6e09d78b7..4fd8e5fc2 100644
--- a/frontend/src/components/Profile.vue
+++ b/frontend/src/components/Profile.vue
@@ -41,7 +41,7 @@
class="text-caption mt-1 ml-1"
>
{{ $t("component.profile.credential.verifiedByLabel") }}
- {{ item.issuer }}
+ {{ item.issuer | truncate }}
40) {
+ return t.slice(0, 40) + "...";
+ }
+ return t;
+ },
+ },
computed: {
profile: function () {
return getPartnerProfile(this.partner);
diff --git a/frontend/src/plugins/vuetify.ts b/frontend/src/plugins/vuetify.ts
index 39b49bb6c..2ba6470d9 100644
--- a/frontend/src/plugins/vuetify.ts
+++ b/frontend/src/plugins/vuetify.ts
@@ -11,6 +11,7 @@ import Vuetify from "vuetify/lib/framework";
import { en, de, pl } from "vuetify/lib/locale/index";
import {
+ mdiAsterisk,
mdiViewDashboard,
mdiForumOutline,
mdiAccountCircle,
@@ -104,6 +105,7 @@ export default new Vuetify({
invitation: mdiTicketConfirmationOutline,
validationError: mdiAlert,
attachment: mdiAttachment,
+ asterisk: mdiAsterisk,
},
},
lang: {
diff --git a/frontend/src/views/Document.vue b/frontend/src/views/Document.vue
index 065f5243a..3ad9a9506 100644
--- a/frontend/src/views/Document.vue
+++ b/frontend/src/views/Document.vue
@@ -80,7 +80,11 @@
icon
:to="{
name: 'RequestVerification',
- params: { documentId: id, schemaId: intDoc.schemaId },
+ params: {
+ documentId: id,
+ schemaId: intDoc.schemaId,
+ type: intDoc.type,
+ },
}"
:disabled="docModified()"
>
diff --git a/frontend/src/views/RequestCredential.vue b/frontend/src/views/RequestCredential.vue
index 556a63d20..ab2dbe03e 100644
--- a/frontend/src/views/RequestCredential.vue
+++ b/frontend/src/views/RequestCredential.vue
@@ -18,13 +18,14 @@
v-model="selectedDocument"
disable-verification-request
use-indy
+ use-json-ld
selectable
type="document"
>
@@ -50,7 +51,7 @@