change text and navigation

This commit is contained in:
BtcContributor 2021-03-11 15:55:47 +01:00
parent ba5705ca74
commit 2c945b0c40
No known key found for this signature in database
GPG Key ID: DA582457496C7F6D
2 changed files with 5 additions and 3 deletions

View File

@ -3155,7 +3155,8 @@ password.forgotPassword=Forgot password?
password.backupReminder=Please note that when setting a wallet password all automatically created backups from the unencrypted wallet will be deleted.\n\n\
It is highly recommended that you make a backup of the application directory and write down your seed words before setting a password!
password.backupWasDone=I have already made a backup
password.setPassword=Set the password
password.setPassword=Set Password (I already made a backup)
password.makeBackup=Make Backup
seed.seedWords=Wallet seed words
seed.enterSeedWords=Enter wallet seed words

View File

@ -26,6 +26,7 @@ import bisq.desktop.components.PasswordTextField;
import bisq.desktop.components.TitledGroupBg;
import bisq.desktop.main.MainView;
import bisq.desktop.main.account.AccountView;
import bisq.desktop.main.account.content.backup.BackupView;
import bisq.desktop.main.account.content.seedwords.SeedWordsView;
import bisq.desktop.main.overlays.popups.Popup;
import bisq.desktop.util.Layout;
@ -118,10 +119,10 @@ public class PasswordView extends ActivatableView<GridPane, Void> {
new Popup().backgroundInfo(Res.get("password.backupReminder"))
.actionButtonText(Res.get("password.setPassword"))
.onAction(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
.secondaryActionButtonTextWithGoTo(Res.get("navigation.account.walletSeed"))
.secondaryActionButtonText(Res.get("password.makeBackup"))
.onSecondaryAction(() -> {
navigation.setReturnPath(navigation.getCurrentPath());
navigation.navigateTo(MainView.class, AccountView.class, SeedWordsView.class);
navigation.navigateTo(MainView.class, AccountView.class, BackupView.class);
})
.width(800)
.show();