Merge pull request #3884 from overleaf/jpa-meta-editor-take-2

[misc] migrate the editor templates to meta tags -- take 2

GitOrigin-RevId: 447d4c6c2197dd2c5f5e182a5edf57313557b8b9
This commit is contained in:
Shane Kilkelly
2021-04-10 02:05:05 +00:00
committed by Copybot
parent 2fca78eaf0
commit f013f33c05
9 changed files with 89 additions and 45 deletions
@@ -80,6 +80,10 @@ module.exports = ProjectEditorHandler = {
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable
})
if (result.features.trackChanges) {
result.trackChangesState = project.track_changes || false
}
// Originally these two feature flags were both signalled by the now-deprecated `references` flag.
// For older users, the presence of the `references` feature flag should still turn on these features.
result.features.referencesSearch =