mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
19a17060ab
GitOrigin-RevId: e4fafddd67909a0e709439ddbe560c66e2629bdb
14 lines
589 B
TypeScript
14 lines
589 B
TypeScript
import { ReactScopeValueStore } from '../scope-value-store/react-scope-value-store'
|
|
import getMeta from '@/utils/meta'
|
|
|
|
const reviewPanelStorageKey = `ui.reviewPanelOpen.${getMeta('ol-project_id')}`
|
|
|
|
export default function populateLayoutScope(store: ReactScopeValueStore) {
|
|
store.set('ui.view', 'editor')
|
|
store.set('openFile', null)
|
|
store.persisted('ui.chatOpen', false, 'ui.chatOpen')
|
|
store.persisted('ui.reviewPanelOpen', false, reviewPanelStorageKey)
|
|
store.set('ui.leftMenuShown', false)
|
|
store.set('ui.pdfLayout', 'sideBySide')
|
|
store.set('ui.loadingStyleSheet', false)
|
|
}
|