Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tomochain/tomomaster
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 authored and pqv199x committed Jun 26, 2019
2 parents 45459af + 1f6a5bc commit 1311322
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apis/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ router.get('/voter/:voter', [
smartContractAddress: config.get('blockchain.validatorAddress'),
candidate: t.candidate
}) || {}
c.name = b.name || 'Anonymous'

if (t.event === 'Withdraw') {
c.name = ''
} else { c.name = b.name || 'Anonymous' }
return c
}))
return res.json({
Expand Down
11 changes: 11 additions & 0 deletions app/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,23 @@
<div
v-if="!isTomonet"
class="notification_body">
<b-dropdown-text>
<div style="font-size: 13px;">
<strong>TomoMaster up to 1.5.0</strong>
<p>- Display average ROI for masternode owner and voter</p>
<p>- Display owner ROI and voter ROI in masternode detail page</p>
<p>- Add withdrawal notification</p>
<p>- Add sitemap</p>
</div>
</b-dropdown-text>
<b-dropdown-divider/>
<b-dropdown-text>
<div style="font-size: 13px;">
<strong>TomoMaster up to 1.4.3</strong>
<p>- Fix id injection issue</p>
</div>
</b-dropdown-text>
<b-dropdown-divider/>
<b-dropdown-text>
<div style="font-size: 13px;">
<strong>TomoMaster up to 1.4.2</strong>
Expand Down
1 change: 1 addition & 0 deletions app/assets/scss/components/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
a {
text-align: center;
text-decoration: none;
white-space: pre-wrap;
cursor: pointer;

&:hover {
Expand Down
2 changes: 1 addition & 1 deletion app/components/voters/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default {
event: tx.event,
cap: new BigNumber(tx.capacity).div(10 ** 18).toNumber(),
createdAt: moment(tx.createdAt).fromNow(),
name: tx.name,
name: tx.name || '---',
candidateCap: (new BigNumber(tx.currentCandidateCap).div(10 ** 18).toNumber()) || '---'
})
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tomomaster",
"version": "1.4.3",
"version": "1.5.0",
"description": "TomoChain Governance DApp",
"main": "elect.js",
"scripts": {
Expand Down

0 comments on commit 1311322

Please sign in to comment.