Преглед изворни кода

Add `templates` to the `hasFeature` function

Shane Kilkelly пре 8 година
родитељ
комит
af70ef0dc4
1 измењених фајлова са 2 додато и 0 уклоњено
  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}")