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

Merge pull request #15214 from overleaf/ae-legacy-source-editor

Remove legacy source editor option from Server CE/Pro

GitOrigin-RevId: 32a7bf9b54c0082f3ab3ffb5fa11f5b4f2a3bf64
Alf Eaton 3 лет назад
Родитель
Сommit
ef3e8f666b
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      services/web/app/src/Features/Project/ProjectController.js

+ 4 - 4
services/web/app/src/Features/Project/ProjectController.js

@@ -815,10 +815,10 @@ const ProjectController = {
 
 
             const detachRole = req.params.detachRole
             const detachRole = req.params.detachRole
 
 
-            const showLegacySourceEditor =
-              !Features.hasFeature('saas') ||
-              // Allow override via legacy_source_editor=true in query string
-              shouldDisplayFeature('legacy_source_editor')
+            // Allow override via legacy_source_editor=true in query string
+            const showLegacySourceEditor = shouldDisplayFeature(
+              'legacy_source_editor'
+            )
 
 
             const showSymbolPalette =
             const showSymbolPalette =
               !Features.hasFeature('saas') ||
               !Features.hasFeature('saas') ||