From b1a69a48820afe3acde509588b2770463d37c8cf Mon Sep 17 00:00:00 2001 From: Thomas Rueckstiess Date: Thu, 29 Oct 2015 15:01:07 +1100 Subject: [PATCH] new feature flag "First Run Tour", disabled by default. --- src/app.js | 1 + src/home/index.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index c37e49c024c..6b0b393d2a6 100644 --- a/src/app.js +++ b/src/app.js @@ -236,6 +236,7 @@ var state = new Application({ // via `window.localStorage`. var FEATURES = { querybuilder: true, + 'First Run Tour': false, 'Connect with SSL': false, 'Connect with Kerberos': false, 'Connect with LDAP': false, diff --git a/src/home/index.js b/src/home/index.js index 1c814967c45..96ca1bc400c 100644 --- a/src/home/index.js +++ b/src/home/index.js @@ -50,7 +50,9 @@ var HomeView = View.extend({ }, render: function() { this.renderWithTemplate(this); - this.renderSubview(new TourView(), this.queryByHook('tour-container')); + if (app.isFeatureEnabled('First Run Tour')) { + this.renderSubview(new TourView(), this.queryByHook('tour-container')); + } }, onInstanceFetched: function() { if (app.instance.collections.length === 0) {