From 6428a6a524732910a2a1d7cb49a0789670e8b94d Mon Sep 17 00:00:00 2001 From: rui hildt Date: Tue, 23 Apr 2024 11:58:01 +0200 Subject: [PATCH] Update the proxy badge immediately after selecting a proxy --- src/components/Location.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Location.vue b/src/components/Location.vue index 8982d02c..dd2c8d9a 100644 --- a/src/components/Location.vue +++ b/src/components/Location.vue @@ -2,9 +2,11 @@ import { computed } from 'vue'; import { NButton, NCollapse, NCollapseItem, NSpace } from 'naive-ui'; -import getRandomSocksProxy from '@/helpers/getRandomSocksProxy'; import LocationTabs from '@/components/LocationTabs.vue'; +import { updateTabsProxyBadges } from '@/helpers/browserAction'; +import getRandomSocksProxy from '@/helpers/getRandomSocksProxy'; + import useListProxies from '@/composables/useListProxies'; import useSocksProxy from '@/composables/useSocksProxy'; import useLocations from '@/composables/useLocations'; @@ -41,6 +43,7 @@ const setProxy = ( } else { setGlobalProxy({ country, countryCode, city, hostname, ipv4_address, port }); } + updateTabsProxyBadges(); }; const clickServer = (