diff options
author | Dave Arter <davea@mysociety.org> | 2018-04-08 14:49:20 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-04-08 14:49:20 +0100 |
commit | 20b0895690f72591d148ea67ddf6ec29973cdd7c (patch) | |
tree | a7df5c4f9abca3a000b8d30cc48c542c50a3e337 /www/js/views/home.js | |
parent | 063d772657a98c96b79000199701eb8dd8cd8c07 (diff) | |
parent | 5d31be89ccabddb1dec66e505b91cc26a72ba2fb (diff) |
Merge branch 'groundcontrol-a'
Diffstat (limited to 'www/js/views/home.js')
-rw-r--r-- | www/js/views/home.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/js/views/home.js b/www/js/views/home.js index 998af1c..05ee2f7 100644 --- a/www/js/views/home.js +++ b/www/js/views/home.js @@ -24,8 +24,11 @@ afterDisplay: function() { $('#load-screen').hide(); + if ( FMS.isOffline ) { this.navigate( 'offline' ); + } else if ( !FMS.isLoggedIn && CONFIG.LOGIN_REQUIRED ) { + this.navigate( 'login' ); } else if ( FMS.currentDraft && ( FMS.currentDraft.get('title') || FMS.currentDraft.get('lat') || FMS.currentDraft.get('details') || FMS.currentDraft.get('file') ) |