Skip to content

Commit

Permalink
Merge pull request #175 from BitCannaGlobal/Apply-fonts-to-missing-la…
Browse files Browse the repository at this point in the history
…bels

Fix fonts at TX waiting & TX confirmation forms
  • Loading branch information
atmoner authored Jan 17, 2024
2 parents dd5afa6 + a561358 commit 89ffc2c
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 44 deletions.
4 changes: 3 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ export default {
}
.carmenBold {
font-family: 'CarmenBold';
}
.carmenLight {
font-family: 'CarmenLight';
}
.tile {
Expand Down
10 changes: 8 additions & 2 deletions components/ClaimAllModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@
</v-row>
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -175,7 +178,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
59 changes: 35 additions & 24 deletions components/DelegateHomeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
min-width="200"
class="mt-8 white--text"
color="#0FB786"
@click="dialog = true"
@click="openDialog()"
>
<v-icon class="mr-2">
mdi-cube-send
Expand Down Expand Up @@ -67,7 +67,7 @@
>
<v-row>
<v-col cols="12">
<span class="text-left carmenBold">Available: {{ amount }} BCNA</span>
<span class="text-left carmenBold">Available: {{ amountAvailable }} BCNA</span>
<br><br>
<h3 class="mt-1 ml-1 carmenBold">
Amount to delegate*
Expand Down Expand Up @@ -237,7 +237,10 @@
</v-row> -->
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -253,7 +256,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down Expand Up @@ -329,7 +335,7 @@ function countPlaces(num) {
export default {
props: [
"chainIdProps",
"balances",
"amountAvailable",
],
setup() {
const store = useAppStore()
Expand Down Expand Up @@ -360,15 +366,15 @@ export default {
'valoper"',
// v => bech32Validation(v) || 'Bad address (not bech32) ' + bech32Validation(v),
],
amount: instance.balances,
amount: instance.amountAvailable,
amountFinal: "",
amountRules: [
(v) => !!v || "Amount is required",
(v) => !isNaN(v) || "Amount must be number",
(v) =>
v <= instance.balances ||
v <= instance.amountAvailable ||
"Amount must be above delegated amount (" +
instance.balances +
instance.amountAvailable +
")",
(v) => countPlaces(v) < 7 || "Bad decimal",
],
Expand Down Expand Up @@ -397,29 +403,34 @@ export default {
}
},
},
async mounted() {
//await this.store.getStakingModule()
const selectValidatorList = [];
for (const i of this.store.allValidators) {
selectValidatorList.push({
'name': i.name,
'address': i.op_address,
});
}
this.validatorList = selectValidatorList;
this.validatorListSearch = this.validatorList;
created() {
},
methods: {
openDialog() {
this.dialog = true;
//await this.store.getStakingModule()
const selectValidatorList = [];
for (const i of this.store.allValidators) {
selectValidatorList.push({
'name': i.name,
'address': i.op_address,
});
}
this.validatorList = selectValidatorList;
this.validatorListSearch = this.validatorList;
},
getMax() {
this.amountFinal = this.amount;
this.amountFinal = this.amountAvailable;
},
getHalf() {
this.amountFinal = (this.amount / 2).toFixed(6);
this.amountFinal = (this.amountAvailable / 2).toFixed(6);
},
getQuarter() {
this.amountFinal = (this.amount / 4).toFixed(6);
this.amountFinal = (this.amountAvailable / 4).toFixed(6);
},
searchVal() {
if (!this.searchTerm) {
Expand Down
10 changes: 8 additions & 2 deletions components/DelegateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@
</v-row>
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -251,7 +254,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
10 changes: 8 additions & 2 deletions components/RedelegateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@
</v-row>
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -279,7 +282,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
10 changes: 8 additions & 2 deletions components/SendModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@
</v-row>
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -258,7 +261,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
10 changes: 8 additions & 2 deletions components/SoloRewardModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@
</v-row>
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -127,7 +130,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
10 changes: 8 additions & 2 deletions components/UndelegateSingleModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@
</v-row>
</v-form>

<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -239,7 +242,10 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row
v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
7 changes: 4 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,11 @@
color="#0FB786"
>
Stake
</v-btn> -->
</v-btn> -->
<DelegateHomeModal
v-if="store.logged"
:chain-id-props="cosmosConfig[store.chainSelected].coinLookup.addressPrefix"
:balances="store.spendableBalances"
:amount-available="store.spendableBalances"
/>
</span>
</v-col>
Expand Down Expand Up @@ -509,6 +509,7 @@ import axios from "axios"
import dayjs from "dayjs"
import QRCodeVue3 from "qrcode-vue3"
import useClipboard from '~/composables/useClipboard'
import { reverse, sortBy, orderBy, uniqWith, groupBy } from "lodash"
Expand All @@ -533,7 +534,7 @@ const categories = [
export default {
components: {
QRCodeVue3
QRCodeVue3
},
layout: "blog",
setup() {
Expand Down
13 changes: 9 additions & 4 deletions pages/proposals/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
max-width="32"
max-height="32"
:src="cosmosConfig[store.chainSelected].coinLookup.icon"
alt="Bitcanna"
alt="BitCanna"
></v-img>
</v-avatar>
</template>
Expand All @@ -258,7 +258,7 @@
<v-btn icon="mdi-close" @click="dialog = false"></v-btn>
</template>
</v-toolbar>
<v-card-text class="mt-6">
<v-card-text class="mt-6 carmenLight" >

<v-form
v-if="step1"
Expand Down Expand Up @@ -633,7 +633,10 @@
</v-form>


<v-row v-if="step3">
<v-row
v-if="step3"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand All @@ -649,7 +652,9 @@
<h4>Your transaction is waiting to get approved on the blockchain.</h4>
</v-col>
</v-row>
<v-row v-if="step4">
<v-row v-if="step4"
class="carmenBold"
>
<v-col
cols="12"
align="center"
Expand Down
2 changes: 2 additions & 0 deletions stores/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const useAppStore = defineStore('app', {
validatorDelegations: '',
validatorUnDelegations: '',
myAddressBook: [],
dataLoaded: false,
}),
actions: {
async refresh() {
Expand All @@ -64,6 +65,7 @@ export const useAppStore = defineStore('app', {
await this.getGovModule()
await this.getDelegations()
await this.getAddressBook()
this.dataLoaded = true
},
setChainId(chainId) {
this.chainSelected = chainId
Expand Down

0 comments on commit 89ffc2c

Please sign in to comment.