Skip to content

Commit

Permalink
hide top bar while in proposal details page (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreacot authored Sep 14, 2024
1 parent 6181883 commit bc4285c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/page/governance/proposals_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func NewProposalsPage(l *load.Load, detailData interface{}) *ProposalsPage {
if detailData != nil {
pg.proposal = detailData.(*libwallet.Proposal)
time.AfterFunc(time.Millisecond*200, func() { // wait for the page to be displayed
pg.ParentNavigator().Display(NewProposalDetailsPage(pg.Load, pg.proposal))
pg.ParentWindow().Display(NewProposalDetailsPage(pg.Load, pg.proposal))
})
}

Expand Down Expand Up @@ -254,7 +254,7 @@ func (pg *ProposalsPage) HandleUserInteractions(gtx C) {
if clicked, selectedItem := pg.proposalsList.ItemClicked(); clicked {
proposalItems := pg.scroll.FetchedData()
selectedProposal := proposalItems[selectedItem].Proposal
pg.ParentNavigator().Display(NewProposalDetailsPage(pg.Load, &selectedProposal))
pg.ParentWindow().Display(NewProposalDetailsPage(pg.Load, &selectedProposal))
}

for pg.syncButton.Clicked(gtx) {
Expand Down
4 changes: 2 additions & 2 deletions ui/page/root/wallet_selector_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ func (pg *WalletSelectorPage) HandleUserInteractions(gtx C) {
// Create a local copy of asset for each iteration
asset := asset
if clickable.Clicked(gtx) {
pg.ParentNavigator().Display(components.NewCreateWallet(pg.Load, func(_ sharedW.Asset) {
pg.ParentNavigator().ClosePagesAfter(WalletSelectorPageID)
pg.ParentWindow().Display(components.NewCreateWallet(pg.Load, func(_ sharedW.Asset) {
pg.ParentWindow().CloseCurrentPage()
// enable sync for the newly created wallet
wallets, wExists := pg.walletsList[asset]
var mostRecentWallet *walletWithBalance
Expand Down

0 comments on commit bc4285c

Please sign in to comment.