diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-07-05 09:33:25 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-07-05 09:41:25 +0200 |
| commit | 6412f4b4556fa00a7a80fa53f162df6f2ed9b4cc (patch) | |
| tree | cbacc3b985badcf592f2407d21581a70f66b987b | |
| parent | f49244054d0b18615f6a54f76d0bf40f1d2b19bf (diff) | |
| download | mullvadvpn-6412f4b4556fa00a7a80fa53f162df6f2ed9b4cc.tar.xz mullvadvpn-6412f4b4556fa00a7a80fa53f162df6f2ed9b4cc.zip | |
Separate conditional message as separate footer
| -rw-r--r-- | gui/src/renderer/components/AdvancedSettings.tsx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gui/src/renderer/components/AdvancedSettings.tsx b/gui/src/renderer/components/AdvancedSettings.tsx index 0285f2d829..0c60a996e0 100644 --- a/gui/src/renderer/components/AdvancedSettings.tsx +++ b/gui/src/renderer/components/AdvancedSettings.tsx @@ -172,15 +172,17 @@ export default class AdvancedSettings extends Component<IProps, IState> { 'advanced-settings-view', "Unless connected to Mullvad, this setting will completely block your internet, even when you have quit the app.", )} - {this.props.blockWhenDisconnected ? ( - messages.pgettext( - 'advanced-settings-view', - "\n\nWarning: Your internet won't work without a VPN connection, even when you've quit the app. Unless connected to Mullvad, this setting will completely block your internet, even when you have quit the app.", - ) - ) : ( - undefined - )} </Cell.Footer> + {this.props.blockWhenDisconnected ? ( + <Cell.Footer> + {messages.pgettext( + 'advanced-settings-view', + "Warning: Your internet won't work without a VPN connection, even when you've quit the app. Unless connected to Mullvad, this setting will completely block your internet, even when you have quit the app.", + )} + </Cell.Footer> + ) : ( + undefined + )} <View style={styles.advanced_settings__content}> <Selector |
