mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
Use hasFeature for message about returning to v1/SL
This commit is contained in:
@@ -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}")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user