mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #9431 from overleaf/td-galileo-query-string
Add galileoFeatures query string parameter GitOrigin-RevId: 19022b95490e5e664872102ed2b4ab156f955364
This commit is contained in:
@@ -1116,7 +1116,13 @@ const ProjectController = {
|
||||
!Features.hasFeature('saas') ||
|
||||
(user.features && user.features.symbolPalette)
|
||||
|
||||
// It would be nice if this could go in the Galileo module but
|
||||
// nothing else does that
|
||||
const galileoEnabled = shouldDisplayFeature('galileo')
|
||||
const galileoFeatures =
|
||||
req.query && 'galileoFeatures' in req.query
|
||||
? req.query.galileoFeatures.split(',').map(f => f.trim())
|
||||
: ['all']
|
||||
|
||||
const dictionaryEditorEnabled =
|
||||
!Features.hasFeature('saas') ||
|
||||
@@ -1200,6 +1206,7 @@ const ProjectController = {
|
||||
showNewSourceEditorOption,
|
||||
showSymbolPalette,
|
||||
galileoEnabled,
|
||||
galileoFeatures,
|
||||
showStopOnFirstError,
|
||||
detachRole,
|
||||
metadata: { viewport: false },
|
||||
|
||||
Reference in New Issue
Block a user