Просмотр исходного кода

affiliations flag checks `Settings.overleaf` (#2080)

GitOrigin-RevId: c0dc5a8c1e6ad6c5ddb055ccfc21c901d66a9827
Miguel Serrano 7 лет назад
Родитель
Сommit
e8790a638c

+ 1 - 1
services/web/app/src/infrastructure/Features.js

@@ -43,7 +43,7 @@ module.exports = Features = {
       case 'view-templates':
         return Settings.overleaf == null
       case 'affiliations':
-        return !!Settings.apis.v1.url
+        return Settings.overleaf != null
       case 'redirect-sl':
         return Settings.redirectToV2 != null
       case 'overleaf-integration':

+ 3 - 0
services/web/test/acceptance/config/settings.test.coffee

@@ -155,3 +155,6 @@ module.exports =
 			name: 'google'
 		},
 
+	# setting to true since many features are enabled/disabled after availability of this
+  # property (check Features.js)
+	overleaf: true