Skip to content

Commit

Permalink
Merge pull request #118 from MickWang/master
Browse files Browse the repository at this point in the history
update ui and messages
  • Loading branch information
MickWang committed Oct 30, 2018
2 parents 2bf0bb6 + e61cd1b commit 86208e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ let template = [
}
},
{
label: 'Quit ( 粘贴 )',
label: 'Quit ( 退出 )',
accelerator: 'CmdOrCtrl+Q',
role: 'quit'
},
Expand Down
10 changes: 8 additions & 2 deletions src/renderer/components/Node/NodeStake/NodeStakeInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,14 @@ export default {
if (res.Error === 0) {
this.$message.success(this.$t('common.transSentSuccess'))
} else if (res.Error === -1) {
this.$message.error(this.$t('common.ongNoEnough'))
return;
if(res.Result.indexOf('balance insufficient') > -1 ) {
this.$message.error(this.$t('common.balanceInsufficient'))
} else if(res.Result.indexOf('cover gas cost') > -1) {
this.$message.error(this.$t('common.ongNoEnough'))
} else {
this.$message.error(res.Result)
}
return;
} else {
this.$message.error(res.Result)
return;
Expand Down

0 comments on commit 86208e0

Please sign in to comment.