• R/O
  • HTTP
  • SSH
  • HTTPS

Byone: Commit

Bytom Wallet for Chrome


Commit MetaInfo

Revisionbdc79471e006b4865b978341c8327179e55f192b (tree)
Zeit2020-10-15 15:38:41
AutorZhiting Lin <zlin035@uott...>
CommiterZhiting Lin

Log Message

update the side chain

Ändern Zusammenfassung

Diff

--- a/src/assets/language/cn.js
+++ b/src/assets/language/cn.js
@@ -103,7 +103,8 @@ const cn = {
103103 listAsset: {
104104 all:'全部',
105105 fail:'失败',
106- main:'主链'
106+ main:'主链',
107+ side:'侧链',
107108 },
108109 crossChain:{
109110 title:'跨链',
--- a/src/assets/language/en.js
+++ b/src/assets/language/en.js
@@ -103,7 +103,8 @@ const en = {
103103 listAsset: {
104104 all:'All',
105105 fail:'Failed',
106- main:'Chain'
106+ main:'Chain',
107+ side:'Sidechain',
107108 },
108109 crossChain:{
109110 title:'Cross Chain',
--- a/src/views/assetList.vue
+++ b/src/views/assetList.vue
@@ -376,7 +376,12 @@ export default {
376376 }
377377
378378 if(transaction.types.includes('in_crosschain')){
379- transaction.address = `${this.currentAsset.asset.symbol} ${this.$t("listAsset.main")}`
379+ const chain = this.netType ==='vapor'? this.$t("listAsset.main"):this.$t("listAsset.side")
380+ let symbol = this.currentAsset.asset.symbol
381+ if(symbol =='SUP'){
382+ symbol = 'BTM'
383+ }
384+ transaction.address = `${symbol} ${chain}`
380385 }else if(transaction.types.includes('vote')){
381386 const pubKey = transaction.outputs.find( i => i.type ==='vote').vote
382387 const item = this.listVote[pubKey]
Show on old repository browser