diff --git a/src/common/lang/en.js b/src/common/lang/en.js index 5aab708..97bb5c5 100644 --- a/src/common/lang/en.js +++ b/src/common/lang/en.js @@ -114,7 +114,9 @@ export default { passError: 'Password error', ontidNotExist: 'The ONT ID to import does not exist on the blockchain', keystoreImport: 'ONT ID Keystore Import', - invalidKeystore: 'The keysotre you input is invalid.' + invalidKeystore: 'The keystore you input is invalid.', + ontidExist: 'The identity already exists in local.', + importSuccess: 'Import Identity succeessfully!' }, wallets: { @@ -626,7 +628,9 @@ Within their 50% share each consensus node will receive their share according to initPosInLock: "Locked", initPosRedeemable: 'Claimable', noClaimbleInitPos: 'No claimble ONT.', - redeemInitPosOk: 'Redeem' + redeemInitPosOk: 'Redeem', + hasClaimableInitPos: 'You have redeemable init pos. Plase redeem this part first.', + noClaimbleToRefund: 'No redeemable ONT to refund.' }, exchange: { exchange: 'Exchange', diff --git a/src/common/lang/zh.js b/src/common/lang/zh.js index da53f65..e7331b5 100644 --- a/src/common/lang/zh.js +++ b/src/common/lang/zh.js @@ -114,7 +114,9 @@ export default { passError: '密码错误', ontidNotExist: '要导入的ONT ID不存在于区块链上', keystoreImport: '导入ONT ID Keystore', - invalidKeystore: '您输入的keystore不正确。' + invalidKeystore: '您输入的keystore不正确。', + ontidExist: '要导入的ONT ID本地已存在。', + importSuccess: '导入ONT ID成功。' }, wallets: { @@ -621,7 +623,9 @@ export default { initPosInLock: "锁定中", initPosRedeemable: '可提取', noClaimbleInitPos: '没有可提取的初始质押。', - redeemInitPosOk: '确认提取' + redeemInitPosOk: '确认提取', + hasClaimableInitPos: '您还有可提取的初始质押。请先提取该部分ONT。', + noClaimbleToRefund: '没有可提取的ONT。无法提款。' }, exchange: { exchange: 'Exchange', diff --git a/src/core/utils.js b/src/core/utils.js index e48e661..d3cefff 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -187,13 +187,13 @@ export function getTokenBalanceUrl(token_type, address) { export function validateKeystorePath(path) { const system = os.platform(); - if(system.indexOf('win') > -1) { + if(system.indexOf('win') > -1 && system !== 'darwin') { const files = fs.readdirSync(path) if(files && files.indexOf('resources') > -1 && files.indexOf('OWallet.exe') > -1) { return false; } const cwd = process.cwd(); - if(path && (path === cwd || path.indexOf(cwd) > -1)) { + if(path && cwd !== '/' && (path === cwd || path.indexOf(cwd) > -1)) { return false; } } diff --git a/src/renderer/components/Identitys.vue b/src/renderer/components/Identitys.vue index b3ef9f0..38941f3 100644 --- a/src/renderer/components/Identitys.vue +++ b/src/renderer/components/Identitys.vue @@ -109,7 +109,8 @@ import IdentityView from './Identitys/IdentityView' .div-create-wallet { width: 24.63rem; height: 13.19rem; - margin-right: 3.75rem; + margin-right: 1.75rem; + margin-left:1.75rem; margin-bottom: 2.75rem; } diff --git a/src/renderer/components/Identitys/Import/BasicInfo.vue b/src/renderer/components/Identitys/Import/BasicInfo.vue index 5da6d89..34fb9b3 100644 --- a/src/renderer/components/Identitys/Import/BasicInfo.vue +++ b/src/renderer/components/Identitys/Import/BasicInfo.vue @@ -139,12 +139,12 @@ import { getRestClient, formatScryptParams } from '../../../../core/utils'; dbService.insert(wallet, function (err, newDoc) { if (err) { console.log(err) - that.$message.warning('The identity already exists in local.') + that.$message.warning(that.$t('importIdentity.ontidExist')) that.$store.dispatch('hideLoadingModals') return; } - that.$message.success('Import Identity succeessfully!') + that.$message.success(that.$t('importIdentity.importSuccess')) that.$router.push({name: 'Identitys'}) }) }, diff --git a/src/renderer/components/Node/NodeStake/NodeStakeInfo.vue b/src/renderer/components/Node/NodeStake/NodeStakeInfo.vue index 8b58b56..1bbc7e1 100644 --- a/src/renderer/components/Node/NodeStake/NodeStakeInfo.vue +++ b/src/renderer/components/Node/NodeStake/NodeStakeInfo.vue @@ -114,8 +114,8 @@
{{$t('nodeStake.stakeQuantity')}}
{{current_peer.initPos}}
- -