OSDN Git Service

update the side chain
authorZhiting Lin <zlin035@uottawa.ca>
Thu, 15 Oct 2020 06:38:41 +0000 (14:38 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Thu, 15 Oct 2020 06:38:41 +0000 (14:38 +0800)
src/assets/language/cn.js
src/assets/language/en.js
src/views/assetList.vue

index e8b19ee..5471402 100644 (file)
@@ -103,7 +103,8 @@ const cn = {
   listAsset: {
     all:'全部',
     fail:'失败',
-    main:'主链'
+    main:'主链',
+    side:'侧链',
   },
   crossChain:{
     title:'跨链',
index 2e5c9e1..49368bb 100644 (file)
@@ -103,7 +103,8 @@ const en = {
   listAsset: {
     all:'All',
     fail:'Failed',
-    main:'Chain'
+    main:'Chain',
+    side:'Sidechain',
   },
   crossChain:{
     title:'Cross Chain',
index 830f11a..c655197 100644 (file)
@@ -376,7 +376,12 @@ export default {
                 }
 
                 if(transaction.types.includes('in_crosschain')){
-                  transaction.address = `${this.currentAsset.asset.symbol} ${this.$t("listAsset.main")}`
+                  const chain = this.netType ==='vapor'? this.$t("listAsset.main"):this.$t("listAsset.side")
+                  let symbol = this.currentAsset.asset.symbol
+                  if(symbol =='SUP'){
+                    symbol = 'BTM'
+                  }
+                  transaction.address = `${symbol} ${chain}`
                 }else if(transaction.types.includes('vote')){
                   const pubKey = transaction.outputs.find( i => i.type ==='vote').vote
                   const item = this.listVote[pubKey]