From 008e978b8a290b542918d8f5d85334e45af1c8bb Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 24 Apr 2017 18:45:18 -0700 Subject: [PATCH] Make standalone registration more accessible Add buttons for switching between the linking flow and the standalone registration flow. The button and standalone registration are only availble in a development environment. // FREEBIE --- background.html | 4 ++++ js/views/app_view.js | 2 ++ js/views/install_view.js | 1 + 3 files changed, 7 insertions(+) diff --git a/background.html b/background.html index 549e1b794..509cd600e 100644 --- a/background.html +++ b/background.html @@ -669,6 +669,9 @@

{{ installAndroidInstructions }}

diff --git a/js/views/app_view.js b/js/views/app_view.js index a1f0d659d..7cb194748 100644 --- a/js/views/app_view.js +++ b/js/views/app_view.js @@ -9,6 +9,8 @@ this.installView = null; }, events: { + 'click .openInstaller': 'openInstaller', + 'click .openStandalone': 'openStandalone', 'openInstaller': 'openInstaller', 'openInbox': 'openInbox', }, diff --git a/js/views/install_view.js b/js/views/install_view.js index 0a969d4cb..86290b65a 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -26,6 +26,7 @@ installFinalButton: i18n('installFinalButton'), installTooManyDevices: i18n('installTooManyDevices'), ok: i18n('ok'), + development: window.config.environment === 'development' }; }, initialize: function(options) {