Make track changes default with override for old history

This commit is contained in:
James Allen 2014-03-31 09:47:36 +01:00
parent 3b079cde92
commit 2ca70f25f6
3 changed files with 5 additions and 5 deletions

View file

@ -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,

View file

@ -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' ]

View file

@ -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