From 9f45c2f7a8dd105c69751bd855832b26c372d116 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Wed, 3 Feb 2016 15:51:16 -0500 Subject: [PATCH] Add config for disabling the lobby settings page In some editions we may not have completed translations. For these, the settings page can be hidden. --- editions/free/src/settings.json | 3 ++- src/lobby/Lobby.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/editions/free/src/settings.json b/editions/free/src/settings.json index 342a188..8f1293b 100644 --- a/editions/free/src/settings.json +++ b/editions/free/src/settings.json @@ -22,5 +22,6 @@ "supportedLocales": { "English": "en", "EspaƱol": "es" - } + }, + "settingsPageDisabled": false } diff --git a/src/lobby/Lobby.js b/src/lobby/Lobby.js index 9d05d7e..680a7c3 100644 --- a/src/lobby/Lobby.js +++ b/src/lobby/Lobby.js @@ -40,6 +40,11 @@ export default class Lobby { ScratchAudio.addSound('sounds/', 'cut.wav', ScratchAudio.uiSounds); ScratchAudio.init(); Lobby.setPage(place ? place : 'home'); + + if (window.Settings.settingsPageDisabled) { + gn('settings').style.visibility = 'hidden'; + } + gn('hometab').ontouchstart = function () { if (gn('hometab').className != 'home on') { Lobby.setPage('home');