Skip to content

Commit

Permalink
Add alert after generating json file (Issue #339)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentSalou committed Apr 28, 2021
1 parent f2efcae commit c616675
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/app/login/passphrase/passphrase.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export class PassphrasePage implements OnInit {
async downloadAndReturnLogin() {
await this.download()
this.router.navigate(['/'])
this.alertService.showMessage(
'LOGIN.FILE_BACK_LOGIN_ALERT.TITLE',
'LOGIN.FILE_BACK_LOGIN_ALERT.SUBTITLE',
'',
'LOGIN.FILE_BACK_LOGIN_ALERT.OK')
}

/* encypts mnemonic with authentication provider encypt function
Expand Down
7 changes: 6 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
"PUBLIC_KEY": "Public Key",
"PUBLIC_KEY_TEXT": "An extended public key (xpub) allows you to open a view only wallet."
},
"INFO_TEXT_BROWSER": "Notice for existing MVS wallet users: On your first login to myetpwallet.com, please create a wallet file from your backup words and then open the wallet from the file."
"INFO_TEXT_BROWSER": "Notice for existing MVS wallet users: On your first login to myetpwallet.com, please create a wallet file from your backup words and then open the wallet from the file.",
"FILE_BACK_LOGIN_ALERT": {
"TITLE": "Backup file generated",
"SUBTITLE": "Your backup file has been generated. You can now open your wallet using 'Open wallet' and choose the 'File' option.",
"OK": "Got it"
}
},
"IMPORT_QR": {
"TITLE": "Import QR Code",
Expand Down
15 changes: 10 additions & 5 deletions src/assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
"PUBLIC_KEY": "公钥",
"PUBLIC_KEY_TEXT": "扩展的公共密钥(xpub)允许您打开仅查看钱包。"
},
"INFO_TEXT_BROWSER": "现有MVS钱包用户的通知: 首次登录myetpwallet.com时,请使用备份单词创建一个钱包文件,然后从该文件中打开钱包。"
"INFO_TEXT_BROWSER": "现有MVS钱包用户的通知: 首次登录myetpwallet.com时,请使用备份单词创建一个钱包文件,然后从该文件中打开钱包。",
"FILE_BACK_LOGIN_ALERT": {
"TITLE": "备份已生成",
"SUBTITLE": "您的备份文件已经生成,现在您可以点击“打开钱包”选项打开钱包,然后点击“文件”选项",
"OK": "好的"
}
},
"IMPORT_QR": {
"TITLE": "导入二维码",
Expand Down Expand Up @@ -413,7 +418,7 @@
"TITLE": "您确定吗?",
"SUBTITLE": "所有登录数据将被清除。",
"CANCEL": "取消",
"OK": "OK"
"OK": "好的"
},
"SAVE_ACCOUNT_NO_NAME": {
"TITLE": "请输入一个帐户名",
Expand Down Expand Up @@ -557,7 +562,7 @@
},
"BUTTON": {
"BACK": "返回",
"OK": "OK"
"OK": "好的"
}
}
},
Expand Down Expand Up @@ -739,7 +744,7 @@
"CONFIRM_ALERT": {
"TITLE": "太棒了!",
"SUBTITLE": "您的交易已成功发送",
"OK": "Ok"
"OK": "好的"
},
"BUTTON": {
"CANCEL": "取消",
Expand Down Expand Up @@ -1050,7 +1055,7 @@
"MESSAGE": {
"LOADING": "正在加载...",
"ERROR_TITLE": "糟糕...",
"OK": "Ok",
"OK": "好的",
"PASSWORD_WRONG": "密码错误,请重试"
},
"MULTISIG": {
Expand Down

0 comments on commit c616675

Please sign in to comment.