summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-10 16:01:08 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-07-16 11:19:29 +0200
commitb3836f6fcf6182eed4bb1af3b21e106742760934 (patch)
treea149411a7e93acd70175e60ff95dbd24f83d92b3
parent57ebb751e0f1929a3c7bdf2875e165478dbad3b0 (diff)
downloadmullvadvpn-b3836f6fcf6182eed4bb1af3b21e106742760934.tar.xz
mullvadvpn-b3836f6fcf6182eed4bb1af3b21e106742760934.zip
Add auto-connect and auto-start options to Preferences UI
-rw-r--r--app/components/Preferences.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/components/Preferences.js b/app/components/Preferences.js
index dfe098999a..d0bf113243 100644
--- a/app/components/Preferences.js
+++ b/app/components/Preferences.js
@@ -36,6 +36,37 @@ export default class Preferences extends Component<PreferencesProps> {
<View style={styles.preferences__content}>
<View style={styles.preferences__cell}>
<View style={styles.preferences__cell_label_container}>
+ <Text style={styles.preferences__cell_label}>Auto-connect</Text>
+ </View>
+ <View style={styles.preferences__cell_accessory}>
+ <Switch
+ isOn={this.props.autoConnect}
+ onChange={this.props.onChangeAutoConnect}
+ />
+ </View>
+ </View>
+ <View style={styles.preferences__cell_footer}>
+ <Text style={styles.preferences__cell_footer_label}>
+ {'When your device connects to the internet, your connection will be secured.'}
+ </Text>
+ </View>
+
+ <View style={styles.preferences__cell}>
+ <View style={styles.preferences__cell_label_container}>
+ <Text style={styles.preferences__cell_label}>Auto-start</Text>
+ </View>
+ <View style={styles.preferences__cell_accessory}>
+ <Switch isOn={this.props.autoStart} onChange={this.props.onChangeAutoStart} />
+ </View>
+ </View>
+ <View style={styles.preferences__cell_footer}>
+ <Text style={styles.preferences__cell_footer_label}>
+ {'When your device starts up, Mullvad VPN is automatically opened.'}
+ </Text>
+ </View>
+
+ <View style={styles.preferences__cell}>
+ <View style={styles.preferences__cell_label_container}>
<Text style={styles.preferences__cell_label}>Local network sharing</Text>
</View>
<View style={styles.preferences__cell_accessory}>