Skip to content

Commit

Permalink
Fix display of connection warning in proxy view
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Feb 8, 2024
1 parent 28083e7 commit cb4f201
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/popup/views/Proxy.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { inject } from 'vue';
import { computed, inject } from 'vue';
import IconLabel from '@/components/IconLabel.vue';
import LocationDrawer from '@/components/ConnectionDetails/LocationDrawer.vue';
Expand All @@ -11,10 +11,16 @@ import { ConnectionKey, defaultConnection } from '@/composables/useConnection';
const { isAboutPage } = useActiveTab();
const { connection } = inject(ConnectionKey, defaultConnection);
const isWireGuard = computed(
() =>
connection.value.protocol === 'WireGuard' ||
connection.value.protocol === 'SOCKS through WireGuard',
);
</script>

<template>
<div v-if="connection.protocol === 'WireGuard'">
<div v-if="isWireGuard">
<ProxyHost v-if="!isAboutPage" />
<ProxyGlobal />
<LocationDrawer />
Expand Down

0 comments on commit cb4f201

Please sign in to comment.