Explorar o código

Add `templates` to the `hasFeature` function

Shane Kilkelly %!s(int64=8) %!d(string=hai) anos
pai
achega
af70ef0dc4
Modificáronse 1 ficheiros con 2 adicións e 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}")