Skip to content

Commit

Permalink
Change index number at trade steps to start with 1 not with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikJannsen committed Jan 19, 2025
1 parent 8b9b9ab commit 42f5c05
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ private void setBisqEasyTrade(BisqEasyTrade bisqEasyTrade) {

case TAKER_SENT_TAKE_OFFER_REQUEST:

// Seller
// Seller
case TAKER_RECEIVED_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_DID_NOT_RECEIVED_BTC_ADDRESS:
case TAKER_RECEIVED_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_RECEIVED_BTC_ADDRESS:
case MAKER_SENT_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_DID_NOT_RECEIVED_BTC_ADDRESS:
case MAKER_SENT_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_RECEIVED_BTC_ADDRESS:
case MAKER_SENT_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_RECEIVED_BTC_ADDRESS_:
case MAKER_DID_NOT_SENT_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_RECEIVED_BTC_ADDRESS:
// Buyer
// Buyer
case TAKER_RECEIVED_TAKE_OFFER_RESPONSE__BUYER_DID_NOT_SENT_BTC_ADDRESS__BUYER_DID_NOT_RECEIVED_ACCOUNT_DATA:
case TAKER_RECEIVED_TAKE_OFFER_RESPONSE__BUYER_SENT_BTC_ADDRESS__BUYER_DID_NOT_RECEIVED_ACCOUNT_DATA:
case TAKER_RECEIVED_TAKE_OFFER_RESPONSE__BUYER_SENT_BTC_ADDRESS__BUYER_DID_NOT_RECEIVED_ACCOUNT_DATA_:
Expand All @@ -159,7 +159,7 @@ private void setBisqEasyTrade(BisqEasyTrade bisqEasyTrade) {
case MAKER_SENT_TAKE_OFFER_RESPONSE__SELLER_SENT_ACCOUNT_DATA__SELLER_DID_NOT_RECEIVED_BTC_ADDRESS:
case MAKER_SENT_TAKE_OFFER_RESPONSE__SELLER_SENT_ACCOUNT_DATA__SELLER_RECEIVED_BTC_ADDRESS:
case SELLER_RECEIVED_FIAT_SENT_CONFIRMATION:
// Buyer
// Buyer
case TAKER_RECEIVED_TAKE_OFFER_RESPONSE__BUYER_SENT_BTC_ADDRESS__BUYER_RECEIVED_ACCOUNT_DATA:
case MAKER_SENT_TAKE_OFFER_RESPONSE__BUYER_SENT_BTC_ADDRESS__BUYER_RECEIVED_ACCOUNT_DATA:
case BUYER_SENT_FIAT_SENT_CONFIRMATION:
Expand Down Expand Up @@ -384,7 +384,7 @@ private void phaseIndexChanged(Number phaseIndex) {
badge.getStyleClass().add("bisq-easy-trade-state-phase-badge-completed");
label.getStyleClass().add("bisq-easy-trade-state-phase-completed");
} else {
badge.setText(String.valueOf(index));
badge.setText(String.valueOf(index + 1));
badge.getLabel().setGraphic(null);
if (index == phaseIndex.intValue()) {
// current
Expand Down Expand Up @@ -414,7 +414,6 @@ private static Triple<HBox, Label, Badge> getPhaseItem(int index) {
label.getStyleClass().add("bisq-easy-trade-state-phase");
Badge badge = new Badge();
badge.setUseAnimation(false);
badge.setText(String.valueOf(index));
HBox hBox = new HBox(7.5, badge, label);
hBox.setAlignment(Pos.CENTER_LEFT);
return new Triple<>(hBox, label, badge);
Expand Down

0 comments on commit 42f5c05

Please sign in to comment.