From 05c007a51ddd21dab5e630670500694184376767 Mon Sep 17 00:00:00 2001 From: Kirisu <56469224+rubenkristian@users.noreply.github.com> Date: Fri, 4 Nov 2022 15:07:15 +0700 Subject: [PATCH] feat: remove USN from lab (#570) remove USN from lab --- src/components/HeaderWallet.vue | 10 ---------- src/store/substrate/index.js | 4 ---- .../Dashboard/Lab/Registration/Services/index.vue | 6 +++--- src/views/Dashboard/Lab/Registration/index.vue | 1 - src/views/Dashboard/Lab/Services/Add.vue | 4 ++-- src/views/Dashboard/Lab/Services/Detail.vue | 4 ++-- 6 files changed, 7 insertions(+), 22 deletions(-) diff --git a/src/components/HeaderWallet.vue b/src/components/HeaderWallet.vue index 53b563f7..95ce01be 100644 --- a/src/components/HeaderWallet.vue +++ b/src/components/HeaderWallet.vue @@ -89,14 +89,6 @@ export default { balance: 0 }, - { - name: "usdn", - icon: "near-logo", - currency: "USN", - unit: "ether", - balance: 0 - }, - { name: "usdt", icon: "tether-logo", @@ -112,7 +104,6 @@ export default { methods: { ...mapMutations({ setWalletBalance: "substrate/SET_WALLET_BALANCE", - setUSNBalance: "substrate/SET_USN_BALANCE", setUSDTBalance: "substrate/SET_USDT_BALANCE", setPolkadotWallet: "substrate/SET_POLKADOT_WALLET", clearWallet: "metamask/CLEAR_WALLET" @@ -151,7 +142,6 @@ export default { if (!data) return wallet.balance = this.web3.utils.fromWei(data.data.balance.replaceAll(",", ""), wallet.unit) wallet.id = data.id - if (wallet.name === "usdn") this.setUSNBalance(wallet.balance) if (wallet.name === "usdt") this.setUSDTBalance(wallet.balance) } }) diff --git a/src/store/substrate/index.js b/src/store/substrate/index.js index 707294fd..23330f5b 100644 --- a/src/store/substrate/index.js +++ b/src/store/substrate/index.js @@ -40,7 +40,6 @@ const defaultState = { mnemonicData: null, lastBlockData: null, blockNumber: null, - usnBalance: null, usdtBalance: null, polkadotWallet: null } @@ -91,9 +90,6 @@ export default { SET_WALLET_BALANCE(state, balance) { state.walletBalance = balance }, - SET_USN_BALANCE(state, balance) { - state.usnBalance = balance - }, SET_USDT_BALANCE(state, balance) { state.usdtBalance = balance }, diff --git a/src/views/Dashboard/Lab/Registration/Services/index.vue b/src/views/Dashboard/Lab/Registration/Services/index.vue index 7869f9d8..520b8b80 100644 --- a/src/views/Dashboard/Lab/Registration/Services/index.vue +++ b/src/views/Dashboard/Lab/Registration/Services/index.vue @@ -323,7 +323,7 @@ export default { category: "", dnaCollectionProcess: "", name: "", - currency: "USN", + currency: "USDT", price: 0, qcPrice: 0, description: "", @@ -342,7 +342,7 @@ export default { isLoading: false, isSubmiting: false, isUploading: false, - currencyList: ["USN", "USDT"], + currencyList: ["USDT"], listExpectedDuration: [ { text: "Hours", value: "Hours" }, { text: "Days", value: "Days" } @@ -522,7 +522,7 @@ export default { category: "", dnaCollectionProcess: "", name: "", - currency: "USN", + currency: "USDT", price: 0, qcPrice: 0, description: "", diff --git a/src/views/Dashboard/Lab/Registration/index.vue b/src/views/Dashboard/Lab/Registration/index.vue index 41fd489c..9e7be5c8 100644 --- a/src/views/Dashboard/Lab/Registration/index.vue +++ b/src/views/Dashboard/Lab/Registration/index.vue @@ -211,7 +211,6 @@ import { u8aToHex } from "@polkadot/util" import { generalDebounce } from "@/utils" import DialogErrorBalance from "@/components/Dialog/DialogErrorBalance" - const englishAlphabet = val => (val && /^[A-Za-z0-9!@#$%^&*\\(\\)\-_=+:;"',.\\/? ]+$/.test(val)) || "This field can only contain English alphabet" export default { diff --git a/src/views/Dashboard/Lab/Services/Add.vue b/src/views/Dashboard/Lab/Services/Add.vue index cd6379ae..efb3416e 100644 --- a/src/views/Dashboard/Lab/Services/Add.vue +++ b/src/views/Dashboard/Lab/Services/Add.vue @@ -300,7 +300,7 @@ export default { category: "", dnaCollectionProcess: "", name: "", - currency: "USN", + currency: "USDT", price: 0, qcPrice: 0, description: "", @@ -322,7 +322,7 @@ export default { listCategories:[], isLoading: false, showModalAlert: false, - currencyList: ["USN", "USDT"], + currencyList: ["USDT"], listExpectedDuration: ["Hours", "Days"], dnaCollectionProcessList: [], isBiomedical: false, diff --git a/src/views/Dashboard/Lab/Services/Detail.vue b/src/views/Dashboard/Lab/Services/Detail.vue index bee167c0..212cdbc7 100644 --- a/src/views/Dashboard/Lab/Services/Detail.vue +++ b/src/views/Dashboard/Lab/Services/Detail.vue @@ -278,7 +278,7 @@ export default { category: "", dnaCollectionProcess: "", name: "", - currency: "USN", + currency: "USDT", price: 0, qcPrice: 0, description: "", @@ -295,7 +295,7 @@ export default { isLoading: false, usdRate: 0, isUploading: false, - currencyList: ["USN", "USDT"], + currencyList: ["USDT"], currencyType: "", listExpectedDuration: ["Hours", "Days"], listCategories: [],