Skip to content

Commit

Permalink
Merge pull request #1223 from DarkFlorist/access-fix-noaccess-handling
Browse files Browse the repository at this point in the history
Only show "No access" message for user-denied sites
  • Loading branch information
KillariDev authored Dec 10, 2024
2 parents 7c7bd9d + ac527f7 commit 3467887
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 3467887

Please sign in to comment.