Explorar el Código

Add `templates` to the `hasFeature` function

Shane Kilkelly hace 8 años
padre
commit
af70ef0dc4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
 			when 'custom-togglers'
 				return Settings.overleaf?
+			when 'templates'
+				return !Settings.overleaf?
 			else
 				throw new Error("unknown feature: #{feature}")