Merge pull request #1334 from ripcurlx/change-goto-screen-after-trade

Change path after completed trade
This commit is contained in:
Manfred Karrer 2018-02-13 12:38:45 -05:00 committed by GitHub
commit e5e7ded68f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -1518,6 +1518,7 @@ navigation.arbitratorSelection=\"Arbitrator selection\"
navigation.funds.availableForWithdrawal=\"Fund/Send funds\"
navigation.portfolio.myOpenOffers=\"Portfolio/My open offers\"
navigation.portfolio.pending=\"Portfolio/Open trades\"
navigation.portfolio.closedTrades=\"Portfolio/History\"
navigation.funds.depositFunds=\"Funds/Receive funds\"
navigation.settings.preferences=\"Settings/Preferences\"
navigation.funds.transactions=\"Funds/Transactions\"

View file

@ -1281,6 +1281,7 @@ navigation.arbitratorSelection=\"Vermittlerauswahl\"
navigation.funds.availableForWithdrawal=\"Gelder/Gelder senden\"
navigation.portfolio.myOpenOffers=\"Portfolio/Meine offenen Angebote\"
navigation.portfolio.pending=\"Portfolio/Offene Händel\"
navigation.portfolio.closedTrades=\"Portfolio/Verlauf\"
navigation.funds.depositFunds=\"Gelder/Gelder erhalten\"
navigation.settings.preferences=\"Einstellungen/Voreinstellungen\"
navigation.funds.transactions=\"Gelder/Transaktionen\"

View file

@ -36,10 +36,10 @@ import io.bisq.gui.components.AutoTooltipLabel;
import io.bisq.gui.components.InputTextField;
import io.bisq.gui.components.TitledGroupBg;
import io.bisq.gui.main.MainView;
import io.bisq.gui.main.funds.FundsView;
import io.bisq.gui.main.funds.transactions.TransactionsView;
import io.bisq.gui.main.overlays.notifications.Notification;
import io.bisq.gui.main.overlays.popups.Popup;
import io.bisq.gui.main.portfolio.PortfolioView;
import io.bisq.gui.main.portfolio.closedtrades.ClosedTradesView;
import io.bisq.gui.main.portfolio.pendingtrades.PendingTradesViewModel;
import io.bisq.gui.main.portfolio.pendingtrades.steps.TradeStepView;
import io.bisq.gui.util.BSFormatter;
@ -286,8 +286,8 @@ public class BuyerStep4View extends TradeStepView {
//noinspection unchecked
new Popup<>().headLine(Res.get("portfolio.pending.step5_buyer.withdrawalCompleted.headline"))
.feedback(Res.get("portfolio.pending.step5_buyer.withdrawalCompleted.msg"))
.actionButtonTextWithGoTo("navigation.funds.transactions")
.onAction(() -> model.dataModel.navigation.navigateTo(MainView.class, FundsView.class, TransactionsView.class))
.actionButtonTextWithGoTo("navigation.portfolio.closedTrades")
.onAction(() -> model.dataModel.navigation.navigateTo(MainView.class, PortfolioView.class, ClosedTradesView.class))
.dontShowAgainId(key)
.show();
}