mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #5384 from overleaf/bg-add-symbol-palette-feature-flag
[web] add symbol palette feature flag GitOrigin-RevId: 154499aaef72b677f28d85c501d0015811081887
This commit is contained in:
parent
4313cba624
commit
b9e7f6ab5e
4 changed files with 11 additions and 0 deletions
|
@ -80,6 +80,7 @@ module.exports = ProjectEditorHandler = {
|
|||
mendeley: false,
|
||||
trackChanges: false,
|
||||
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable,
|
||||
symbolPalette: false,
|
||||
})
|
||||
|
||||
if (result.features.trackChanges) {
|
||||
|
|
|
@ -102,6 +102,10 @@ const UserSchema = new Schema({
|
|||
type: Boolean,
|
||||
default: Settings.defaultFeatures.referencesSearch,
|
||||
},
|
||||
symbolPalette: {
|
||||
type: Boolean,
|
||||
default: Settings.defaultFeatures.symbolPalette,
|
||||
},
|
||||
},
|
||||
featuresOverrides: [
|
||||
{
|
||||
|
@ -126,6 +130,7 @@ const UserSchema = new Schema({
|
|||
mendeley: { type: Boolean },
|
||||
zotero: { type: Boolean },
|
||||
referencesSearch: { type: Boolean },
|
||||
symbolPalette: { type: Boolean },
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -56,6 +56,7 @@ module.exports = {
|
|||
compileTimeout: 60,
|
||||
compileGroup: 'standard',
|
||||
trackChanges: false,
|
||||
symbolPalette: false,
|
||||
},
|
||||
personal: {
|
||||
collaborators: 1,
|
||||
|
@ -71,6 +72,7 @@ module.exports = {
|
|||
compileTimeout: 60,
|
||||
compileGroup: 'standard',
|
||||
trackChanges: false,
|
||||
symbolPalette: false,
|
||||
},
|
||||
collaborator: {
|
||||
collaborators: 10,
|
||||
|
@ -86,6 +88,7 @@ module.exports = {
|
|||
compileTimeout: 180,
|
||||
compileGroup: 'priority',
|
||||
trackChanges: true,
|
||||
symbolPalette: true,
|
||||
},
|
||||
professional: {
|
||||
collaborators: -1,
|
||||
|
@ -101,6 +104,7 @@ module.exports = {
|
|||
compileTimeout: 180,
|
||||
compileGroup: 'priority',
|
||||
trackChanges: true,
|
||||
symbolPalette: true,
|
||||
},
|
||||
}),
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ describe('UserFeaturesUpdater', function () {
|
|||
referencesSearch: true,
|
||||
zotero: true,
|
||||
mendeley: true,
|
||||
symbolPalette: true,
|
||||
}
|
||||
this.User = {
|
||||
findByIdAndUpdate: sinon.stub().yields(null, { features: this.features }),
|
||||
|
|
Loading…
Reference in a new issue