Skip to content

Commit

Permalink
Merge pull request #2427 from ManfredKarrer/add-missing-url-to-dao-ne…
Browse files Browse the repository at this point in the history
…ws-page

Add link for requestNowButton. Use redirect URL
  • Loading branch information
ripcurlx authored Feb 16, 2019
2 parents e5dd9a2 + 27c412c commit 14cfdbc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import bisq.desktop.components.BsqAddressTextField;
import bisq.desktop.components.TitledGroupBg;
import bisq.desktop.main.presentation.DaoPresentation;
import bisq.desktop.util.GUIUtil;
import bisq.desktop.util.Layout;

import bisq.core.btc.wallet.BsqWalletService;
Expand Down Expand Up @@ -92,7 +93,7 @@ private GridPane createBisqDAOOnTestnetContent() {
"https://docs.bisq.network/getting-started-dao.html#explore-a-bsq-block-explorer");

Hyperlink hyperlink = addHyperlinkWithIcon(gridPane, ++rowIndex, Res.get("dao.news.DAOOnTestnet.readMoreLink"),
"https://docs.bisq.network/user-dao-intro.html");
"https://bisq.network/docs/dao");
hyperlink.getStyleClass().add("dao-news-link");

return gridPane;
Expand Down Expand Up @@ -127,7 +128,7 @@ private AnchorPane createBisqDAOContent() {
theBisqDaoTitledGroup.getStyleClass().addAll("last", "dao-news-titled-group");
Label daoTeaserContent = addMultilineLabel(bisqDAOPane, ++rowIndex, Res.get("dao.news.bisqDAO.description"));
daoTeaserContent.getStyleClass().add("dao-news-teaser");
Hyperlink hyperlink = addHyperlinkWithIcon(bisqDAOPane, ++rowIndex, Res.get("dao.news.bisqDAO.readMoreLink"), "https://bisq.network/dao");
Hyperlink hyperlink = addHyperlinkWithIcon(bisqDAOPane, ++rowIndex, Res.get("dao.news.bisqDAO.readMoreLink"), "https://bisq.network/docs/dao");
hyperlink.getStyleClass().add("dao-news-link");

GridPane pastContributorsPane = new GridPane();
Expand All @@ -148,6 +149,7 @@ private AnchorPane createBisqDAOContent() {
Button requestNowButton = addPrimaryActionButton(pastContributorsPane, ++rowIndex, Res.get("dao.news.pastContribution.requestNow"), 0);
requestNowButton.setMaxWidth(Double.MAX_VALUE);
GridPane.setHgrow(requestNowButton, Priority.ALWAYS);
requestNowButton.setOnAction(e -> GUIUtil.openWebPage("https://bisq.network/docs/dao/genesis"));

anchorPane.getChildren().addAll(bisqDAOPane, pastContributorsPane);

Expand Down

0 comments on commit 14cfdbc

Please sign in to comment.