summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2024-08-20 11:20:05 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2024-09-17 11:29:32 +0200
commit800575568a26fedfacb012a759e988c5b5773a99 (patch)
tree2cb8709b07c7e4ae9026fd73b69072878dc79dc6 /gui/src
parent52cc8aa95eb78917eed7e496ba213c2c6982563e (diff)
downloadmullvadvpn-800575568a26fedfacb012a759e988c5b5773a99.tar.xz
mullvadvpn-800575568a26fedfacb012a759e988c5b5773a99.zip
Disable use_anywhere toggle if DAITA is disabled
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/WireguardSettings.tsx17
1 files changed, 15 insertions, 2 deletions
diff --git a/gui/src/renderer/components/WireguardSettings.tsx b/gui/src/renderer/components/WireguardSettings.tsx
index edcef77ea8..95bedbb33a 100644
--- a/gui/src/renderer/components/WireguardSettings.tsx
+++ b/gui/src/renderer/components/WireguardSettings.tsx
@@ -585,10 +585,23 @@ function DaitaSettings() {
</Cell.Container>
</AriaInputGroup>
<AriaInputGroup>
- <Cell.Container>
+ <Cell.Container disabled={!daita}>
<AriaLabel>
- <Cell.InputLabel>The "Just make it work" Button</Cell.InputLabel>
+ <Cell.InputLabel>{messages.gettext('Use anywhere')}</Cell.InputLabel>
</AriaLabel>
+ <InfoButton>
+ <ModalMessage>
+ {sprintf(
+ messages.pgettext(
+ 'wireguard-settings-view',
+ '¯\\_(ツ)_/¯', // TODO
+ ),
+ {
+ daita: strings.daita,
+ },
+ )}
+ </ModalMessage>
+ </InfoButton>
<AriaInput>
<Cell.Switch isOn={useAnywhere} onChange={setUseAnywhere} />
</AriaInput>