summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2018-02-01 13:00:14 +0100
committerErik Larkö <erik@mullvad.net>2018-02-01 13:10:04 +0100
commit8717a0dc5e71cb2195e5e017e1200965456f6400 (patch)
tree57700850ed6e88c9734233554160d5b6281b2bf4
parent1084b45f890fabdac1a9e59ad4962c9090569c75 (diff)
downloadmullvadvpn-8717a0dc5e71cb2195e5e017e1200965456f6400.tar.xz
mullvadvpn-8717a0dc5e71cb2195e5e017e1200965456f6400.zip
Open the download page when tapping on the app version
-rw-r--r--app/components/Settings.js3
-rw-r--r--app/components/SettingsStyles.js1
-rw-r--r--app/config.json1
3 files changed, 4 insertions, 1 deletions
diff --git a/app/components/Settings.js b/app/components/Settings.js
index edd9d37f7a..4022054acd 100644
--- a/app/components/Settings.js
+++ b/app/components/Settings.js
@@ -109,9 +109,10 @@ export default class Settings extends Component {
_renderMiddleButtons() {
return <View>
- <ButtonCell testName='settings__version'>
+ <ButtonCell onPress={ this.props.onExternalLink.bind(this, 'download') } testName='settings__version'>
<Text style={styles.settings__cell_label}>App version</Text>
<Text style={styles.settings__cell_subtext}>{this._formattedVersion()}</Text>
+ <Img style={styles.settings__cell_icon} source='icon-extLink' tintColor='currentColor'/>
</ButtonCell>
</View>;
}
diff --git a/app/components/SettingsStyles.js b/app/components/SettingsStyles.js
index ef502e9db4..d37703a8fe 100644
--- a/app/components/SettingsStyles.js
+++ b/app/components/SettingsStyles.js
@@ -70,6 +70,7 @@ export default Object.assign(createViewStyles({
backgroundColor: 'rgba(41,71,115,0.9)'
},
settings__cell_icon:{
+ marginLeft: 8,
width: 16,
height: 16,
flexGrow: 0,
diff --git a/app/config.json b/app/config.json
index cb4594cdc7..d022e65ef6 100644
--- a/app/config.json
+++ b/app/config.json
@@ -4,6 +4,7 @@
"purchase": "https://mullvad.net/account/",
"faq": "https://mullvad.net/faq/",
"guides": "https://mullvad.net/guides/",
+ "download": "https://mullvad.net/download/",
"supportEmail": "mailto:support@mullvad.net"
}
}