diff --git a/src/router/index.js b/src/router/index.js index 04e70054..3084d4b9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -211,6 +211,24 @@ const router = new VueRouter({ ], }, }, + { + path: '/:chain/account/:address/receive', + name: 'chain-receive', + component: () => import('@/views/WalletAccountReceive.vue'), + meta: { + pageTitle: 'Accounts', + breadcrumb: [ + { + text: 'Accounts', + active: true, + }, + { + text: 'Pay Me', + active: true, + }, + ], + }, + }, { path: '/:chain/staking', name: 'staking', diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 54f7067b..7ca7fb58 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -93,33 +93,34 @@ Active Proposals - - - - - {{ prop.id }} - - + + {{ myVotes[prop.id] || 'Vote' }} + + +
- {{ prop.title }} + {{ prop.id }}. {{ prop.title }}
{{ formatType(prop.contents['@type']) }} {{ formatEnding(prop.voting_end_time) }}
-
-
-
+ + +
No active proposal! Browse all @@ -195,6 +196,114 @@ /> + + + + + + + + + + + + + Unbonding Tokens + + + + + From: {{ item.validator_address }} + + + + + + + + + + + + + + + + + + Send + + + + + + receive + + + @@ -202,25 +311,39 @@ Connect Wallet +
diff --git a/src/views/components/OperationModal/components/Transfer.vue b/src/views/components/OperationModal/components/Transfer.vue index 37e6fddf..f8d041b2 100644 --- a/src/views/components/OperationModal/components/Transfer.vue +++ b/src/views/components/OperationModal/components/Transfer.vue @@ -134,6 +134,10 @@ export default { type: String, default: '', }, + toAddress: { + type: String, + default: '', + }, balance: { type: Array, default: () => [], @@ -145,7 +149,7 @@ export default { currencySign: getUserCurrencySign(), token: '', amount: null, - recipient: '', + recipient: this.toAddress, required, password, email, diff --git a/src/views/components/OperationModal/index.vue b/src/views/components/OperationModal/index.vue index 9feea086..b1e4a8dc 100644 --- a/src/views/components/OperationModal/index.vue +++ b/src/views/components/OperationModal/index.vue @@ -47,6 +47,7 @@ :balance="balance" :proposal-id="proposalId" :proposal-title="proposalTitle" + :to-address="toAddress" @update="componentUpdate" /> @@ -263,6 +264,10 @@ export default { type: String, default: null, }, + toAddress: { + type: String, + default: null, + }, }, data() { return { diff --git a/src/views/components/dashboard/DashboardCardHorizontal.vue b/src/views/components/dashboard/DashboardCardHorizontal.vue index 36fd7c91..d27fa3a1 100644 --- a/src/views/components/dashboard/DashboardCardHorizontal.vue +++ b/src/views/components/dashboard/DashboardCardHorizontal.vue @@ -3,7 +3,7 @@

- {{ statistic }} + {{ statistic || '-' }}

{{ statisticTitle }}