Skip to content

Commit

Permalink
Add links to search engine recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt authored and simonasker committed Feb 14, 2023
1 parent 81263ff commit 1658901
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/PrivacyRecommendations/PrivacyRecommendation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const tooltip = useRecommendationIconTooltip(recommendation);
<IconLabel
:text="
connection.isMullvad
? 'As you\'re connected to Mullvad VPN, we recommend you set Mullvad Leta as your default search engine.'
: 'As you\'re not connected to Mullvad VPN, we recommend you use DuckDuckGo or a similar privacy focused search engine.'
? 'As you\'re using Mullvad VPN, we recommend you set Mullvad Leta as your default search engine.'
: 'As you\'re not using Mullvad VPN, we recommend you change your default search engine to a privacy focused one (for example, DuckDuckGo).'
"
type="info"
class="mb-2"
Expand All @@ -100,7 +100,19 @@ const tooltip = useRecommendationIconTooltip(recommendation);

<template #action>
<div class="flex justify-between">
<Button :href="recommendation.homeUrl" @click="closePopup">
<Button
v-if="!recommendation.activated && recommendation.id === 'default-search'"
:href="connection.isMullvad ? `https://leta.mullvad.net` : `https://duckduckgo.com`"
@click="closePopup"
>
<ExternalLinkIconLabel
:text="
connection.isMullvad ? `Learn more about Mullvad Leta` : `Learn more about DuckDuckGo`
"
/>
</Button>

<Button v-else :href="recommendation.homeUrl" @click="closePopup">
<ExternalLinkIconLabel text="Learn More" />
</Button>

Expand Down

0 comments on commit 1658901

Please sign in to comment.