mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:43:41 +00:00
Add templates
to the hasFeature
function
This commit is contained in:
parent
40da785363
commit
af70ef0dc4
1 changed files with 2 additions and 0 deletions
|
@ -18,5 +18,7 @@ module.exports = Features =
|
|||
return Settings.showPublishModal
|
||||
when 'custom-togglers'
|
||||
return Settings.overleaf?
|
||||
when 'templates'
|
||||
return !Settings.overleaf?
|
||||
else
|
||||
throw new Error("unknown feature: #{feature}")
|
||||
|
|
Loading…
Reference in a new issue