From 5ba0a30ce1f405205e38fbe0f9e129f6e54787ba Mon Sep 17 00:00:00 2001 From: Robert Sayakhov Date: Mon, 21 Oct 2019 13:03:25 +0300 Subject: [PATCH] D3 | Set account quorum equal to iroha quorum (#232) * style: fixes linter warnings * chore: removed quorum * feat: show correct number of pending txs --- src/App.vue | 2 +- src/components/Dashboard/DashboardChart.vue | 4 +- .../Dashboard/DashboardDonutChart.vue | 6 ++- src/components/Dashboard/DashboardPage.vue | 8 ++-- .../Dashboard/DashboardPortfolio.vue | 20 ++++++--- src/components/Dashboard/DashboardTable.vue | 14 ++++-- src/components/Home.vue | 8 +--- src/components/Home/Menu.vue | 44 ++++++++++++++----- src/components/Login.vue | 12 +++-- src/components/Reports/ReportsPage.vue | 4 +- .../components/Leftside/CurrencyItem.vue | 16 +++++-- .../components/Rightside/PublicKeysCard.vue | 8 ++-- .../components/Rightside/SettingsCard.vue | 4 +- .../components/Rightside/WalletLimitsCard.vue | 9 ++-- .../components/Rightside/WhiteListCard.vue | 12 +++-- .../Settlements/SettlementsHistory.vue | 14 ++++-- .../Settlements/SettlementsIncoming.vue | 20 ++++++--- .../Settlements/SettlementsOutgoing.vue | 16 +++++-- .../Settlements/SettlementsPage.vue | 16 ++++--- src/components/Signup.vue | 12 +++-- .../Transactions/components/TransferTab.vue | 12 ++--- src/components/Wallets/WalletMenuItem.vue | 8 +++- src/components/Wallets/WalletsPage.vue | 2 +- .../Wallets/components/HistoryTable.vue | 6 ++- .../Wallets/components/InfoCards.vue | 24 +++++++--- .../components/modals/DepositModal.vue | 10 +++-- .../components/modals/TransferModal.vue | 2 +- .../components/modals/WithdrawalModal.vue | 2 +- src/components/common/UploadTx.vue | 10 +++-- src/components/common/modals/ConfirmModal.vue | 4 +- .../common/modals/ExchangeModal.vue | 4 +- .../common/modals/UploadTransactionModal.vue | 4 +- src/store/Account.js | 4 +- 33 files changed, 229 insertions(+), 112 deletions(-) diff --git a/src/App.vue b/src/App.vue index f70a49827..e2ae2e213 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,7 @@ --> diff --git a/src/components/Dashboard/DashboardChart.vue b/src/components/Dashboard/DashboardChart.vue index 636f5a011..2d1db6a77 100644 --- a/src/components/Dashboard/DashboardChart.vue +++ b/src/components/Dashboard/DashboardChart.vue @@ -21,7 +21,9 @@ :class="[portfolioChart.filter !== value ? 'chart_time-filter' : 'chart_time-filter selected']" @click="selectLabel(value)" > -

{{ value }}

+

+ {{ value }} +

diff --git a/src/components/Dashboard/DashboardDonutChart.vue b/src/components/Dashboard/DashboardDonutChart.vue index 19cc4c907..b5370df3b 100644 --- a/src/components/Dashboard/DashboardDonutChart.vue +++ b/src/components/Dashboard/DashboardDonutChart.vue @@ -7,7 +7,9 @@
-

Portfolio structure

+

+ Portfolio structure +

@@ -32,7 +34,7 @@ :span="8" class="donut-chart" > - + diff --git a/src/components/Dashboard/DashboardPage.vue b/src/components/Dashboard/DashboardPage.vue index ea084096e..51b8a1187 100644 --- a/src/components/Dashboard/DashboardPage.vue +++ b/src/components/Dashboard/DashboardPage.vue @@ -4,8 +4,8 @@ --> diff --git a/src/components/Settings/components/Rightside/WalletLimitsCard.vue b/src/components/Settings/components/Rightside/WalletLimitsCard.vue index 46f7331b3..2a6a8c86f 100644 --- a/src/components/Settings/components/Rightside/WalletLimitsCard.vue +++ b/src/components/Settings/components/Rightside/WalletLimitsCard.vue @@ -49,7 +49,7 @@ class="settings-item_row-delete" @click="removeAssetLimitVisible = true; limitToRemove = limit" > - +
@@ -115,8 +115,8 @@ prop="amount" > @@ -184,8 +184,8 @@ @@ -233,7 +233,8 @@ class="dialog-form_buttons action" type="danger" @click="onRemoveAssetLimit" - >Remove + > + Remove Pending + > + Pending + - +
@@ -109,7 +111,8 @@ :loading="addingNewAddress" class="dialog-form_buttons action" @click="addWhiteAddress" - >Add + > + Add Remove + > + Remove
- {{ formatDateLong(scope.row.from.date) }} + + {{ formatDateLong(scope.row.from.date) }} +

Fee: {{ scope.row.from.fee }} {{ assetName(scope.row.from.assetId) }}

- {{ scope.row.from.message }} - {{ scope.row.from.to }} + + {{ scope.row.from.message }} + + + {{ scope.row.from.to }} +
@@ -68,7 +74,7 @@ {{ formatDate(scope.row.from.date) }} - + diff --git a/src/components/Settlements/SettlementsIncoming.vue b/src/components/Settlements/SettlementsIncoming.vue index 228e6d57a..12aaccb29 100644 --- a/src/components/Settlements/SettlementsIncoming.vue +++ b/src/components/Settlements/SettlementsIncoming.vue @@ -14,7 +14,9 @@ @@ -110,7 +116,9 @@ type="primary" class="fullwidth black clickable" @click="onAccept" - >Accept
+ > + Accept + Reject + > + Reject + diff --git a/src/components/Settlements/SettlementsOutgoing.vue b/src/components/Settlements/SettlementsOutgoing.vue index 2b1d4f3a4..7b5aaf812 100644 --- a/src/components/Settlements/SettlementsOutgoing.vue +++ b/src/components/Settlements/SettlementsOutgoing.vue @@ -14,7 +14,9 @@ @@ -98,7 +104,9 @@ type="danger" class="fullwidth" @click="onReject" - >Reject + > + Reject + diff --git a/src/components/Settlements/SettlementsPage.vue b/src/components/Settlements/SettlementsPage.vue index 8def20840..c8ef8fb4e 100644 --- a/src/components/Settlements/SettlementsPage.vue +++ b/src/components/Settlements/SettlementsPage.vue @@ -19,15 +19,21 @@ History + > + History + Incoming + > + Incoming + Outgoing + > + Outgoing +
import { mapActions, mapGetters } from 'vuex' -import { lazyComponent } from '@router' export default { - components: { - NoAssetsCard: lazyComponent('common/NoAssetsCard') - }, data () { return {} }, diff --git a/src/components/Signup.vue b/src/components/Signup.vue index 2430dcfa9..300d0c7a7 100644 --- a/src/components/Signup.vue +++ b/src/components/Signup.vue @@ -37,7 +37,9 @@
{{ _showError($v.form.username) }}
+ > + {{ _showError($v.form.username) }} +
{{ _showError($v.form.publicKey) }} + > + {{ _showError($v.form.publicKey) }} + {{ _showError($v.form.nodeIp) }} + > + {{ _showError($v.form.nodeIp) }} + diff --git a/src/components/Transactions/components/TransferTab.vue b/src/components/Transactions/components/TransferTab.vue index 9a3721eb5..bd102f09e 100644 --- a/src/components/Transactions/components/TransferTab.vue +++ b/src/components/Transactions/components/TransferTab.vue @@ -21,9 +21,9 @@ - diff --git a/src/components/Wallets/WalletsPage.vue b/src/components/Wallets/WalletsPage.vue index eb2645a6b..4feae3f62 100644 --- a/src/components/Wallets/WalletsPage.vue +++ b/src/components/Wallets/WalletsPage.vue @@ -62,7 +62,7 @@ /> - + diff --git a/src/components/Wallets/components/HistoryTable.vue b/src/components/Wallets/components/HistoryTable.vue index 851772aa0..d4be1ed4b 100644 --- a/src/components/Wallets/components/HistoryTable.vue +++ b/src/components/Wallets/components/HistoryTable.vue @@ -13,7 +13,9 @@ size="medium" type="primary" @click="$emit('update-history')" - >Refresh + > + Refresh + {{ formatDateLong(scope.row.from.date) }}
- +

Type: EXCHANGE diff --git a/src/components/Wallets/components/InfoCards.vue b/src/components/Wallets/components/InfoCards.vue index cf231e387..17bdd3774 100644 --- a/src/components/Wallets/components/InfoCards.vue +++ b/src/components/Wallets/components/InfoCards.vue @@ -29,7 +29,9 @@ effect="dark" placement="top-start" > -

{{ wallet.amount | fitAmount }} {{ wallet.asset }}

+

+ {{ wallet.amount | fitAmount }} {{ wallet.asset }} +

@@ -102,7 +104,9 @@ >
-
Market
+
+ Market +
-

{{ period }}

+

+ {{ period }} +

@@ -155,7 +161,9 @@ -

Market Cap

+

+ Market Cap +

-

Volume ({{ selectedMarketPeriod }})

+

+ Volume ({{ selectedMarketPeriod }}) +

-

Circulating Supply

+

+ Circulating Supply +

Scan QR code or send your {{ wallet.asset }} to

-

{{ walletAddress }}

+

+ {{ walletAddress }} +

- -
Drop transaction here or click to upload
-
Transaction will be automatically send after validation
+ +
+ Drop transaction here or click to upload +
+
+ Transaction will be automatically send after validation +
diff --git a/src/components/common/modals/ConfirmModal.vue b/src/components/common/modals/ConfirmModal.vue index fb508ed58..696fd37af 100644 --- a/src/components/common/modals/ConfirmModal.vue +++ b/src/components/common/modals/ConfirmModal.vue @@ -27,7 +27,9 @@ You need to enter at least {{ approvalDialogMinAmountKeys }} keys.

-

This transaction already has {{ approvalDialogSignatures.length }} signatures

+

+ This transaction already has {{ approvalDialogSignatures.length }} signatures +

diff --git a/src/components/common/modals/ExchangeModal.vue b/src/components/common/modals/ExchangeModal.vue index 1ffc7e81b..b54678e37 100644 --- a/src/components/common/modals/ExchangeModal.vue +++ b/src/components/common/modals/ExchangeModal.vue @@ -22,8 +22,8 @@ prop="offer_amount" > - Cancel + + Cancel +
diff --git a/src/store/Account.js b/src/store/Account.js index 2b1498ad6..b87d5b466 100644 --- a/src/store/Account.js +++ b/src/store/Account.js @@ -401,7 +401,8 @@ const getters = { accountQuorum (state, getters) { // User quorum is based on amount of signatories - return getters.accountSignatories.length + // return getters.accountSignatories.length + return state.accountQuorum }, irohaQuorum (state, getters) { @@ -724,7 +725,6 @@ const mutations = { [types.GET_ACCOUNT_QUORUM_REQUEST] (state) {}, [types.GET_ACCOUNT_QUORUM_SUCCESS] (state, { quorum }) { - console.log(quorum) state.accountQuorum = quorum },