Skip to content

Commit

Permalink
only show noaccess message for user denied sites
Browse files Browse the repository at this point in the history
  • Loading branch information
jubalm committed Dec 10, 2024
1 parent a396897 commit ac527f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/ts/components/pages/WebsiteAccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ const NoAccessPrompt = ({ websiteAccess }: { websiteAccess: Signal<WebsiteAccess
const { selectedDomain } = useWebsiteAccess()
const website = useComputed(() => websiteAccess.value.website)

// If the website has been granted access, don't show this message
if (websiteAccess.value.access === true) return <></>

const confirmOrRejectRemoval = async (returnValue: string) => {
if (returnValue !== 'confirm' || !websiteAccess.value) return
await sendPopupMessageToBackgroundPage({ method: 'popup_removeWebsiteAccess', data: { websiteOrigin: websiteAccess.value.website.websiteOrigin } })
Expand Down

0 comments on commit ac527f7

Please sign in to comment.