Use hasFeature for message about returning to v1/SL

This commit is contained in:
James Allen 2018-01-31 10:05:56 +00:00
parent 7e829f6944
commit de7f13aea6
2 changed files with 3 additions and 1 deletions

View file

@ -12,5 +12,7 @@ module.exports = Features =
return not Features.externalAuthenticationSystemUsed()
when 'github-sync'
return Settings.enableGithubSync
when 'v1-return-message'
return Settings.accountMerge? and Settings.overleaf?
else
throw new Error("unknown feature: #{feature}")

View file

@ -64,7 +64,7 @@ block content
aside.project-list-sidebar.col-md-2.col-xs-3
include ./list/side-bar
if settings.accountMerge && settings.overleaf
if hasFeature('v1-return-message')
.project-list-sidebar-v2-pane.col-md-2.col-xs-3
span Welcome to the Overleaf v2 alpha! #[a(href="https://www.overleaf.com/help/342-overleaf-v2-faq") Find out more].
if userIsFromOLv1(user)