Skip to content

Commit 0c673a3

Browse files
authored
Merge pull request #39 from hypersign-protocol/ui-bugs
fix ui bugs
2 parents 2a150c1 + 4cf8fe7 commit 0c673a3

File tree

4 files changed

+43
-16
lines changed

4 files changed

+43
-16
lines changed

src/components/deploy-onchain-kyc-popup/deploy-kyc.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ export default {
459459
if (this.masterWalletFundTxStatus && this.masterWalletFundTxStatus.status == 200) {
460460
this.notifySuccess('Successfully created master wallet')
461461
} else {
462+
this.masterWalletFundTxStatus = null
462463
throw new Error('Could fund issuer wallet account ')
463464
}
464465
await this.createAppsOnChainConfig({

src/components/deploy-onchain-kyc-popup/finish.vue

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
<template>
22
<div class="container">
3-
43
<div class="row card-body card">
54
<div class="col mt-1">
65
<div>
76
<div class="circleBase type1 mx-1"><i class="fa fa-check"></i></div> Wallet Connected
87
</div>
98
</div>
10-
<div class="col mt-1">
9+
<div class="col mt-1" v-if="getBlockchainUser().blockchain == 'diam'">
10+
<div>
11+
<div class="circleBase type1 mx-1"><i class="fa fa-check"></i></div> Issuer Wallet Created
12+
</div>
13+
</div>
14+
15+
<div class="col mt-1" v-else>
1116
<div>
1217
<div class="circleBase type1 mx-1"><i class="fa fa-check"></i></div> KYC Contract deployed
1318
</div>
1419
</div>
15-
<div class="col mt-1">
20+
<div class="col mt-1" v-if="getBlockchainUser().blockchain == 'diam'">
21+
<div>
22+
<div class="circleBase type1 mx-1"><i class="fa fa-check"></i></div> Issuer Wallet Funded
23+
</div>
24+
</div>
25+
26+
27+
<div class="col mt-1" v-else>
1628
<div>
1729
<div class="circleBase type1 mx-1"><i class="fa fa-check"></i></div> SBT Contract deployed
1830
</div>
@@ -52,10 +64,12 @@
5264

5365
<script>
5466
import { mapMutations, mapActions } from "vuex";
67+
import { mapGetters } from "vuex/dist/vuex.common.js";
5568
5669
export default {
5770
name: 'FinishOnchainKyc',
5871
methods: {
72+
...mapGetters('walletStore', ['getOnChainBlockchainLabel', 'getBlockchainUser']),
5973
...mapMutations('walletStore', ['resetAll', 'nextStep']),
6074
...mapActions('mainStore', ['fetchAppsOnChainConfigs']),
6175
close() {

src/views/playground/OnChainKycSystems.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ h5 span {
160160
<th class="sticky-header">ID</th>
161161
<th class="sticky-header">Date</th>
162162
<th class="sticky-header">Issuer DID</th>
163+
<th class="sticky-header">Issuer Wallet</th>
164+
165+
163166
<!-- <th class="sticky-header">Owner's Wallet</th> -->
164167
<th class="sticky-header">KYC Contract</th>
165168
<!-- <th class="sticky-header">KYC Tx Hash</th> -->
@@ -187,8 +190,10 @@ h5 span {
187190
</td>
188191
<td @click="copyToClip(row.issuerDid, 'Issuer DID')" style="cursor: pointer;">{{
189192
stringShortner(row.issuerDid, 15) }}</td>
190-
<!-- <td @click="copyToClip(row.walletAddress, 'Wallet Address')" style="cursor: pointer;">{{
191-
stringShortner(row.walletAddress, 15) }}</td> -->
193+
<td @click="copyToClip(row.options?.masterWalletAddress, 'Wallet Address')" style="cursor: pointer;">{{
194+
stringShortner(row.options?.masterWalletAddress, 15) }}</td>
195+
196+
192197
<td @click="copyToClip(row.kycContractAddress, 'Kyc Contract Address')" style="cursor: pointer;">{{
193198
stringShortner(row.kycContractAddress, 20) }}</td>
194199
<!-- <td @click="copyToClip(row.kycContractTxHash, 'Kyc Contract Tx Hash')" style="cursor: pointer;"><a
@@ -214,7 +219,8 @@ h5 span {
214219

215220
<StudioSideBar title="OnChain KYC">
216221
<div class="container" style="width: 100%;">
217-
<DeployOnChainKYC />
222+
<!-- sliderKey is added to enure force rendering when DeployOnChainKyc is Called -->
223+
<DeployOnChainKYC :key="sliderKey" />
218224
</div>
219225
</StudioSideBar>
220226
</div>
@@ -252,6 +258,8 @@ export default {
252258
user: {},
253259
fullPage: true,
254260
isLoading: false,
261+
// force render
262+
sliderKey: 0,
255263
}
256264
},
257265
@@ -311,6 +319,8 @@ export default {
311319
this.$root.$emit("bv::toggle::collapse", "sidebar-right");
312320
},
313321
openSlider() {
322+
// force render every time the slider is open
323+
this.sliderKey = this.sliderKey + 1
314324
this.edit = false;
315325
this.setOnChainConfig({});
316326
this.$root.$emit("bv::toggle::collapse", "sidebar-right");
@@ -320,9 +330,7 @@ export default {
320330
if (blockchainlabel.indexOf('cosmos') >= 0) {
321331
config = getCosmosChainConfig(blockchainlabel)
322332
} else {
323-
console.log({
324-
blockchainlabel
325-
})
333+
326334
config = getStellarChainConfig(blockchainlabel)
327335
}
328336

src/views/playground/WidgetConfig/Index.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,18 @@ ul {
214214
<div class="">
215215
<div class="">
216216
<label for=""><strong>Select Proof Type: </strong></label>
217-
<b-form-select class="col-md-10" v-model="slectProof" :options="proofTypeOptions"
218-
size=""></b-form-select>
219-
<span class="col-md-1" style="margin-left:0px">
220-
<HfButtons name="" customClass="btn btn-outline-secondary" iconClass="fa fa-plus"
221-
@executeAction="addZkProof(selectedProofData.value, selectedProofData.criteriaValue)">
222-
</HfButtons>
223-
</span>
217+
<div class="input-group">
218+
219+
<b-form-select class="col-md-11 col-11 col-sm-11 col-lg-11 col-xl-11" v-model="slectProof" :options="proofTypeOptions"
220+
size=""></b-form-select>
221+
<span class="col-md-1 col-1 col-sm-1 col-lg-1 col-xl-1" style="margin-left:0px">
222+
<HfButtons name="" customClass="btn btn-outline-secondary" iconClass="fa fa-plus"
223+
@executeAction="addZkProof(selectedProofData.value, selectedProofData.criteriaValue)">
224+
</HfButtons>
225+
</span>
226+
224227

228+
</div>
225229
</div>
226230
<div class="row" v-if="selectedProofData.criteria">
227231
<div class="col">

0 commit comments

Comments
 (0)