Merge pull request #12316 from overleaf/td-history-view-shell-and-split-test

Add empty shell for React history view, viewable based on split test

GitOrigin-RevId: 97241d56a052648c7a0d293d323dad4b00ad4159
This commit is contained in:
Tim Down
2023-03-23 09:04:38 +00:00
committed by Copybot
parent 5d9923ad1b
commit e76bcbec8d
9 changed files with 64 additions and 5 deletions
@@ -36,6 +36,7 @@ import './components/historyLabel'
import './components/historyFileTree'
import './components/historyFileEntity'
import { paywallPrompt } from '../../../../frontend/js/main/account-upgrade'
import getMeta from '../../utils/meta'
let HistoryManager
export default HistoryManager = (function () {
@@ -124,6 +125,10 @@ export default HistoryManager = (function () {
)
}
isReact() {
return getMeta('ol-splitTestVariants')?.['history-view'] === 'react'
}
hardReset() {
this.$scope.history = {
isV2: true,
@@ -153,6 +158,7 @@ export default HistoryManager = (function () {
showOnlyLabels: this._getShowOnlyLabelsUserPref(),
labels: null,
loadingFileTree: true,
isReact: this.isReact(),
}
const _deregisterFeatureWatcher = this.$scope.$watch(
'project.features.versioning',