From 5abee4fddc0e448adc9b95ad1c3e0709a8af1094 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 11 Nov 2017 23:47:03 +0000 Subject: [PATCH] replace some of the status.im theme with general config options --- config.sample.json | 4 ++++ src/components/views/login/VectorLoginFooter.js | 1 + src/vector/index.js | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config.sample.json b/config.sample.json index 9e69c1c352..016517cd2c 100644 --- a/config.sample.json +++ b/config.sample.json @@ -1,6 +1,10 @@ { "default_hs_url": "https://matrix.org", "default_is_url": "https://vector.im", + "disable_custom_urls": false, + "disable_guests": false, + "disable_login_language_selector": false, + "disable_3pid_login": false, "brand": "Riot", "integrations_ui_url": "https://scalar.vector.im/", "integrations_rest_url": "https://scalar.vector.im/api", diff --git a/src/components/views/login/VectorLoginFooter.js b/src/components/views/login/VectorLoginFooter.js index 5a97f524df..e5243f8ec6 100644 --- a/src/components/views/login/VectorLoginFooter.js +++ b/src/components/views/login/VectorLoginFooter.js @@ -27,6 +27,7 @@ module.exports = React.createClass({ }, render: function() { + // FIXME: replace this with a proper Status skin if (UserSettingsStore.getTheme() === 'status') return
; return ( diff --git a/src/vector/index.js b/src/vector/index.js index 9e05259a84..0577ac82a0 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -332,7 +332,7 @@ async function loadApp() { config={configJson} realQueryParams={params} startingFragmentQueryParams={fragparts.params} - enableGuest={true} + enableGuest={!configJson.disable_guests} onTokenLoginCompleted={onTokenLoginCompleted} initialScreenAfterLogin={getScreenFromLocation(window.location)} defaultDeviceDisplayName={platform.getDefaultDeviceDisplayName()}