Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create modal pop-up with single button taking user to Support screen if there are active support tickets #3477

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ portfolio.pending.support.button.getHelp=Get support
portfolio.pending.support.popup.info=If your issue with the trade remains unsolved, you can open a support \
ticket to request help from a mediator. If you have not received the payment, please wait until the trade period is over.\n\n\
Are you sure you want to open a support ticket?
portfolio.pending.support.popup.attention=You have unresolved support issues. Please resolve as promptly as possible.
portfolio.pending.support.popup.info.arbitrator=If your issue with the trade remains unsolved, you can open a support \
ticket to request help from an arbitrator. If you have not received the payment, please wait until the trade period is over.\n\n\
Are you sure you want to open a support ticket?
Expand Down
14 changes: 14 additions & 0 deletions desktop/src/main/java/bisq/desktop/main/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import bisq.desktop.main.settings.SettingsView;
import bisq.desktop.main.shared.PriceFeedComboBoxItem;
import bisq.desktop.main.support.SupportView;
import bisq.desktop.main.support.dispute.client.arbitration.ArbitrationClientView;
import bisq.desktop.util.DisplayUtils;
import bisq.desktop.util.Transitions;

Expand Down Expand Up @@ -402,6 +403,7 @@ protected Tooltip computeValue() {

// Delay a bit to give time for rendering the splash screen
UserThread.execute(() -> onUiReadyHandler.run());
UserThread.execute(() -> checkOpenSupportTickets());
niyid marked this conversation as resolved.
Show resolved Hide resolved
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -418,6 +420,18 @@ public void onCheckpointFail() {
.useShutDownButton()
.show();
}

private void checkOpenSupportTickets() {
// Create modal pop-up with single button taking user to Support screen if there
// are active support tickets
if (model.getNumOpenSupportTickets() != null && Integer.parseInt(model.getNumOpenSupportTickets().get()) > 0) {
new Popup<>().attention(Res.get("portfolio.pending.support.popup.attention"))
.closeButtonTextWithGoTo("navigation.support")
.onClose(
() -> navigation.navigateTo(MainView.class, SupportView.class, ArbitrationClientView.class))
.show();
niyid marked this conversation as resolved.
Show resolved Hide resolved
}
}


///////////////////////////////////////////////////////////////////////////////////////////
Expand Down