Ver Fonte

Add `templates` to the `hasFeature` function

Shane Kilkelly há 8 anos atrás
pai
commit
af70ef0dc4
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      services/web/app/coffee/infrastructure/Features.coffee

+ 2 - 0
services/web/app/coffee/infrastructure/Features.coffee

@@ -18,5 +18,7 @@ module.exports = Features =
 				return Settings.showPublishModal
 				return Settings.showPublishModal
 			when 'custom-togglers'
 			when 'custom-togglers'
 				return Settings.overleaf?
 				return Settings.overleaf?
+			when 'templates'
+				return !Settings.overleaf?
 			else
 			else
 				throw new Error("unknown feature: #{feature}")
 				throw new Error("unknown feature: #{feature}")