Skip to content

Commit

Permalink
Merge pull request #8445 from brave/guest-visibility
Browse files Browse the repository at this point in the history
Hide ipfs and wallet in guest mode settings
  • Loading branch information
spylogsster authored Apr 6, 2021
2 parents 7f4a532 + 15d23f1 commit ba56259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/resources/settings/brave_overrides/basic_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RegisterPolymerTemplateModifications({
const sectionIPFS = document.createElement('template')
sectionIPFS.setAttribute('is', 'dom-if')
sectionIPFS.setAttribute('restamp', true)
sectionIPFS.setAttribute('if', '[[showPage_(pageVisibility.ipfs)]]')
sectionIPFS.setAttribute('if', '[[showPage_(pageVisibility.braveIPFS)]]')
sectionIPFS.content.appendChild(createSectionElement(
'ipfs',
'braveIPFS',
Expand All @@ -159,7 +159,7 @@ RegisterPolymerTemplateModifications({
const sectionWallet = document.createElement('template')
sectionWallet.setAttribute('is', 'dom-if')
sectionWallet.setAttribute('restamp', true)
sectionWallet.setAttribute('if', '[[showPage_(pageVisibility.wallet)]]')
sectionWallet.setAttribute('if', '[[showPage_(pageVisibility.braveWallet)]]')
sectionWallet.content.appendChild(createSectionElement(
'wallet',
'braveWallet',
Expand Down
2 changes: 2 additions & 0 deletions browser/resources/settings/brave_overrides/page_visibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ function getPageVisibility () {
braveSync: false,
getStarted: false,
newTab: false,
braveIPFS: false,
braveWallet: false
}
}
// We need to specify values for every attribute in pageVisibility instead of
Expand Down

0 comments on commit ba56259

Please sign in to comment.