mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Make track changes default with override for old history
This commit is contained in:
parent
3b079cde92
commit
2ca70f25f6
3 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ module.exports = class ProjectController
|
|||
spellCheckLanguage: user.ace.spellCheckLanguage
|
||||
pdfViewer : user.ace.pdfViewer
|
||||
docPositions: {}
|
||||
trackChanges: user.featureSwitches.trackChanges
|
||||
oldHistory: !!user.featureSwitches?.oldHistory
|
||||
})
|
||||
sharelatexObject : JSON.stringify({
|
||||
siteUrl: Settings.siteUrl,
|
||||
|
|
|
@ -32,7 +32,7 @@ UserSchema = new Schema
|
|||
}
|
||||
featureSwitches : {
|
||||
dropbox: {type:Boolean, default:true},
|
||||
trackChanges: {type:Boolean, default:false}
|
||||
oldHistory: {type:Boolean}
|
||||
}
|
||||
referal_id : {type:String, default:() -> uuid.v4().split("-")[0]}
|
||||
refered_users: [ type:ObjectId, ref:'User' ]
|
||||
|
|
|
@ -119,10 +119,10 @@ define [
|
|||
@cursorManager = new CursorManager(@)
|
||||
@fileViewManager = new FileViewManager(@)
|
||||
@analyticsManager = new AnalyticsManager(@)
|
||||
if @userSettings.trackChanges
|
||||
@trackChangesManager = new TrackChangesManager(@)
|
||||
else
|
||||
if @userSettings.oldHistory
|
||||
@historyManager = new HistoryManager(@)
|
||||
else
|
||||
@trackChangesManager = new TrackChangesManager(@)
|
||||
|
||||
@setLoadingMessage("Connecting")
|
||||
firstConnect = true
|
||||
|
|
Loading…
Reference in a new issue