From ad577f050180f7f47c6cd69efb5c5b48bd5ea0b7 Mon Sep 17 00:00:00 2001 From: Leonie Fritsch Date: Tue, 3 Sep 2024 15:00:22 +0200 Subject: [PATCH] add custom credential text field and plus minus buttons --- frontend/src/styles/style.scss | 1 + frontend/src/views/PresentationRequest.vue | 67 ++++++++-------------- 2 files changed, 25 insertions(+), 43 deletions(-) diff --git a/frontend/src/styles/style.scss b/frontend/src/styles/style.scss index 71fa56f..3125920 100644 --- a/frontend/src/styles/style.scss +++ b/frontend/src/styles/style.scss @@ -19,6 +19,7 @@ body { #maincard { min-width: 80%; max-height: 90vh; + overflow-y: scroll; @media (max-width: 768px) { border-radius: 0; diff --git a/frontend/src/views/PresentationRequest.vue b/frontend/src/views/PresentationRequest.vue index 4f1e680..b7d9723 100644 --- a/frontend/src/views/PresentationRequest.vue +++ b/frontend/src/views/PresentationRequest.vue @@ -10,7 +10,7 @@ aria-label="API Docs"> -
+

Define which credentials you want to have presented

@@ -18,35 +18,33 @@
- - + + - + - - - - - +
+
+
+
+
+ +
+
+ +
+
+ +
@@ -61,29 +59,12 @@ export default { data() { return { selectedCredential: 'any', - // credentialType: undefined, customCredentialTypes: [""], - enableCustomCredentialType: false, customChangeTimeout: undefined } }, components: { PresentationRequest - }, - watch: { - customCredentialType() { - this.setCustomCredentialType(); - }, - enableCustomCredentialType(newValue) { - if (newValue && this.customCredentialType) this.credentialType = this.customCredentialType; - else this.credentialType = undefined; - } - }, - methods: { - setCustomCredentialType() { - if (this.customChangeTimeout) clearTimeout(this.customChangeTimeout); - this.customChangeTimeout = setTimeout(() => this.credentialType = this.customCredentialType, 500); - } } } \ No newline at end of file