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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user