mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Add informational popup when voting for the first time
This commit is contained in:
parent
e4ecb869ad
commit
942d8366b2
2 changed files with 14 additions and 0 deletions
|
@ -1691,6 +1691,9 @@ dao.proposal.myVote.revealTxId=Vote reveal transaction ID
|
|||
dao.proposal.myVote.stake.prompt=Max. available stake for voting: {0}
|
||||
dao.proposal.votes.header=Set stake for voting and publish your votes
|
||||
dao.proposal.myVote.button=Publish votes
|
||||
dao.proposal.myVote.setStake.description=After voting on all proposals you have to set your stake for voting by locking up \
|
||||
BSQ. The more BSQ you lock up, the more weight your vote will have. \n\n\
|
||||
BSQ locked up for voting will be unlocked again during the vote reveal phase.
|
||||
dao.proposal.create.selectProposalType=Select proposal type
|
||||
dao.proposal.create.phase.inactive=Please wait until the next proposal phase
|
||||
dao.proposal.create.proposalType=Proposal type
|
||||
|
|
|
@ -424,18 +424,29 @@ public class ProposalsView extends ActivatableView<GridPane, Void> implements Bs
|
|||
daoFacade.setVote(getBallotListItem().getBallot(), new Vote(true));
|
||||
updateStateAfterVote();
|
||||
tableView.getSelectionModel().clearSelection();
|
||||
|
||||
showHowToSetStakeForVotingPopup();
|
||||
}
|
||||
|
||||
private void showHowToSetStakeForVotingPopup() {
|
||||
String id = "explainHowToSetStakeForVoting";
|
||||
if (preferences.showAgain(id))
|
||||
new Popup<>().information(Res.get("dao.proposal.myVote.setStake.description"))
|
||||
.dontShowAgainId(id).show();
|
||||
}
|
||||
|
||||
private void onReject() {
|
||||
daoFacade.setVote(getBallotListItem().getBallot(), new Vote(false));
|
||||
updateStateAfterVote();
|
||||
tableView.getSelectionModel().clearSelection();
|
||||
showHowToSetStakeForVotingPopup();
|
||||
}
|
||||
|
||||
private void onIgnore() {
|
||||
daoFacade.setVote(getBallotListItem().getBallot(), null);
|
||||
updateStateAfterVote();
|
||||
tableView.getSelectionModel().clearSelection();
|
||||
showHowToSetStakeForVotingPopup();
|
||||
}
|
||||
|
||||
private void onVote() {
|
||||
|
|
Loading…
Add table
Reference in a new issue