Skip to content

Commit

Permalink
Disable use_anywhere toggle if DAITA is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Aug 20, 2024
1 parent abf7bda commit 6bc0618
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions gui/src/renderer/components/WireguardSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,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>
Expand Down

0 comments on commit 6bc0618

Please sign in to comment.