Skip to content

Commit

Permalink
Add contextual 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 ff12808 commit 81263ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/PrivacyRecommendations/PrivacyRecommendation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import type { Recommendation } from '@/composables/useRecommendations/Recommenda
import useRecommendationIconTooltip from '@/composables/useRecommendationIconTooltip';
import useWebRtc from '@/composables/useWebRtc';
import ExternalLinkIconLabel from '@/components/ExternalLinkIconLabel.vue';
import useConnection from '@/composables/useConnection';
const { connection } = useConnection();
const props = defineProps<{
recommendation: Recommendation;
Expand Down Expand Up @@ -76,6 +79,21 @@ const tooltip = useRecommendationIconTooltip(recommendation);
<Instructions :recommendation="recommendation" />
</div>

<div
v-if="!recommendation.activated && recommendation.id === 'default-search'"
class="pt-4 flex items-center"
>
<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.'
"
type="info"
class="mb-2"
/>
</div>

<div v-if="recommendation.warning" class="pt-4 flex items-center">
<IconLabel :text="recommendation.warning" type="info" />
</div>
Expand Down

0 comments on commit 81263ff

Please sign in to comment.