@@ -18,7 +18,7 @@ import { checkDomain } from '@/helpers/domain';
18
18
const { activeTabHost, isBrowserPage } = useActiveTab ();
19
19
const { updateConnection } = useConnection ();
20
20
const { proxySelect } = useLocations ();
21
- const { proxyPermissionsGranted, triggerRequestProxyPermissions } = useProxyPermissions ();
21
+ const { isGranted, requestPermissions } = useProxyPermissions ();
22
22
const { getSocksProxies } = useSocksProxies ();
23
23
const {
24
24
allowProxy,
@@ -132,7 +132,7 @@ watch([currentHostProxyEnabled, subDomainProxyEnabled, domainProxyDetails, exclu
132
132
133
133
<template >
134
134
<n-tabs
135
- v-if =" proxyPermissionsGranted "
135
+ v-if =" isGranted "
136
136
type =" line"
137
137
justify-content =" start"
138
138
:value =" activeTab"
@@ -275,41 +275,22 @@ watch([currentHostProxyEnabled, subDomainProxyEnabled, domainProxyDetails, exclu
275
275
</div >
276
276
</div >
277
277
</n-tab-pane >
278
-
279
- <n-tab-pane
280
- v-if =" !proxyPermissionsGranted"
281
- name =" permissions"
282
- tab =" Permissions missing"
283
- class =" flex flex-col"
284
- >
285
- <ul >
286
- <li >- <strong >tabs</strong > to show proxy settings from the active tab</li >
287
- <li >- <strong >proxy</strong > to configure and use Mullvad proxy servers</li >
288
- <li >- <strong >< ; all_urls> ; </strong > to have granular proxy settings</li >
289
- </ul >
290
-
291
- <Button size =" small" class =" mt-3" @click =" triggerRequestProxyPermissions" >
292
- Grant permissions
293
- </Button >
294
- </n-tab-pane >
295
278
</n-tabs >
296
279
297
- <n-tabs v-if = " !proxyPermissionsGranted " type =" line" justify-content =" start" >
280
+ <n-tabs v-else type =" line" justify-content =" start" >
298
281
<template #prefix >
299
282
<TitleCategory title =" Proxy" />
300
283
</template >
301
284
302
- <n-tab-pane v-if = " !proxyPermissionsGranted " name =" permissions" tab =" Permissions missing" >
285
+ <n-tab-pane name =" permissions" tab =" Permissions missing" >
303
286
<div class =" flex flex-col" >
304
287
<ul >
305
288
<li >- <strong >tabs</strong > to show proxy settings from the active tab</li >
306
289
<li >- <strong >proxy</strong > to configure and use Mullvad proxy servers</li >
307
290
<li >- <strong >< ; all_urls> ; </strong > to have granular proxy settings</li >
308
291
</ul >
309
292
310
- <Button size =" small" class =" mt-3" @click =" triggerRequestProxyPermissions" >
311
- Grant permissions
312
- </Button >
293
+ <Button size =" small" class =" mt-3" @click =" requestPermissions" > Grant permissions </Button >
313
294
</div >
314
295
</n-tab-pane >
315
296
</n-tabs >
0 commit comments