OSDN Git Service

update the key value according to bytom go
authorZhiting Lin <zlin035@uottawa.ca>
Tue, 18 Jun 2019 06:33:35 +0000 (14:33 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Tue, 18 Jun 2019 06:33:35 +0000 (14:33 +0800)
src/features/balances/components/ListItem.jsx
src/features/balances/components/VoteDetails/VoteDetails.jsx
src/locales/en/translation.json
src/locales/zh/translation.json
src/utility/buildInOutDisplay.js

index 4aaac76..be01336 100644 (file)
@@ -22,8 +22,8 @@ class ListItem extends React.Component {
         accountAlias: item.accountAlias,
         accountId: item.accountId
       }
-      if(item.totalVoteAmount){
-        balanceItem.totalVoteAmount = convertAmount(item.totalVoteAmount)
+      if(item.totalVoteNumber){
+        balanceItem.totalVoteNumber = convertAmount(item.totalVoteNumber)
       }
     }
 
index 5a1a38c..a8fe70b 100644 (file)
@@ -40,7 +40,7 @@ class VoteDetails extends BaseShow {
             {(voteDetails).map(item =>
               <tr>
                 <td>{item.vote}</td>
-                <td>{normalizeGlobalBTMAmount(btmID, item.voteAmount, btmAmountUnit)}</td>
+                <td>{normalizeGlobalBTMAmount(btmID, item.voteNumber, btmAmountUnit)}</td>
               </tr>
             )}
             </tbody>
index 6b747d9..9c8ff7e 100644 (file)
     "reissueTrue":"Able to be reissued",
     "reissueFalse":"Unable to be reissued",
     "vote": "Node Public Key",
-    "totalVoteAmount":"Vote"
+    "totalVoteNumber":"Vote"
   },
   "xpub":{
     "methodOptions" : {
index 7894580..1c81492 100644 (file)
     "reissueTrue":"可重复发行",
     "reissueFalse":"不可重复发行",
     "vote": "节点公钥",
-    "totalVoteAmount":"投票"
+    "totalVoteNumber":"投票"
   },
   "xpub":{
     "methodOptions" : {
index 9760e05..f1e7285 100644 (file)
@@ -13,7 +13,7 @@ const balanceFields = [
   'assetTags' ,
   'assetIsLocal' ,
   'amount' ,
-  'totalVoteAmount',
+  'totalVoteNumber',
   'accountAlias' ,
   'account' ,
   'accountTags' ,
@@ -85,7 +85,7 @@ const buildDisplay = (item, fields, btmAmountUnit, t) => {
           label: t(`form.${key}`),
           value: decimals? formatIntNumToPosDecimal(item[key], decimals) :normalizeGlobalBTMAmount(item['assetId'], item[key], btmAmountUnit)
         })
-      }else if(key === 'totalVoteAmount' ){
+      }else if(key === 'totalVoteNumber' ){
         details.push({
           label: t(`form.${key}`),
           value: decimals? formatIntNumToPosDecimal(item[key], decimals) :normalizeGlobalBTMAmount(item['assetId'], item[key], btmAmountUnit),