2023-10-26 04:57:00 -04:00
|
|
|
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)
|
2023-10-27 05:06:25 -04:00
|
|
|
store.persisted('ui.chatOpen', false, 'ui.chatOpen')
|
2023-10-26 04:57:00 -04:00
|
|
|
store.persisted('ui.reviewPanelOpen', false, reviewPanelStorageKey)
|
|
|
|
store.set('ui.leftMenuShown', false)
|
|
|
|
store.set('ui.pdfLayout', 'sideBySide')
|
|
|
|
store.set('ui.loadingStyleSheet', false)
|
|
|
|
}
|