From dc2b5c584a216792f17024d8d7d06869c7d734e3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 1 Nov 2014 11:47:39 +0100 Subject: [PATCH] Redirect to #getting_started until system setup is done. --- app/assets/javascripts/app/controllers/login.js.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/app/controllers/login.js.coffee b/app/assets/javascripts/app/controllers/login.js.coffee index 8a2a0efa7..6fba55da2 100644 --- a/app/assets/javascripts/app/controllers/login.js.coffee +++ b/app/assets/javascripts/app/controllers/login.js.coffee @@ -5,6 +5,11 @@ class Index extends App.ControllerContent constructor: -> super + # redirect to getting started if setup is not done + if !@Config.get('system_init_done') + @navigate '#getting_started' + return + # navigate to # if session if exists if @Session.get() @navigate '#'