From 414cc1e63695a3ffea5e51127fa98f1a426ce052 Mon Sep 17 00:00:00 2001 From: raj6939 Date: Fri, 4 Nov 2022 19:09:49 +0530 Subject: [PATCH] table scrollable and ui changes done --- src/mixins/messages.js | 1 + src/store/store.js | 20 +++++++++++++++++ src/views/Credential.vue | 46 ++++++++++++++++++++++---------------- src/views/OrgSidebar.vue | 17 +++++++++----- src/views/Presentation.vue | 38 ++++++++++++++++++------------- src/views/Schema.vue | 43 +++++++++++++++++++++++++---------- 6 files changed, 112 insertions(+), 53 deletions(-) diff --git a/src/mixins/messages.js b/src/mixins/messages.js index 7d58ad2..a5ca0f1 100644 --- a/src/mixins/messages.js +++ b/src/mixins/messages.js @@ -6,6 +6,7 @@ const ORGANIZATION = { } const SCHEMA = { + DUPLICATE_ATTRIBUTE: "Duplicate attribute name not allowed", PROTECTED_TERM: "is protected term you can't use it", NO_SPACE: "There should not be space in attribute name", NAME_CAMELCASE: "Name should be camelCase", diff --git a/src/store/store.js b/src/store/store.js index e9d0bcb..e0bef74 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -30,6 +30,9 @@ export default new Vuex.Store({ } }, getters: { + vcList(state) { + return state.vcList + }, userDetails(state) { return state.userProfile.details }, @@ -102,6 +105,23 @@ export default new Vuex.Store({ } } }, + increaseOrgDataCount(state,payload) { + state.orgList.find((x)=>{ + if(x._id === state.selectedOrgDid){ + x[payload] += 1 + } + }) + }, + DecreaseOrgTemplateCount(state,payload) { + state.orgList.find((x)=>{ + if(x._id === state.selectedOrgDid){ + if(x[payload]!==0){ + x[payload] -= 1 + } + + } + }) + }, shiftContainer(state,payload) { state.containerShift = payload }, diff --git a/src/views/Credential.vue b/src/views/Credential.vue index 7b9375b..52870cb 100644 --- a/src/views/Credential.vue +++ b/src/views/Credential.vue @@ -43,6 +43,10 @@ h5 span { background: #fff; padding: 0 10px; } +.scrollit { + overflow:scroll; + height:600px; +}