overleaf/services/web/frontend/js/features/ide-react/scope-adapters/review-panel-context-adapter.ts
ilkin-overleaf e946e27532 Merge pull request #15845 from overleaf/ii-ide-page-prototype-review-panel-reopen-comment
[web]  React ide page reopen comment

GitOrigin-RevId: 9c80dcfeb41481647423e2c376417a2bf26a549e
2023-11-27 09:04:11 +00:00

29 lines
1.1 KiB
TypeScript

import { ReactScopeValueStore } from '@/features/ide-react/scope-value-store/react-scope-value-store'
export default function populateReviewPanelScope(store: ReactScopeValueStore) {
store.set('reviewPanel.overview.docsCollapsedState', {})
store.set('reviewPanel.overview.loading', false)
store.set('reviewPanel.nVisibleSelectedChanges', 0)
store.set('permissions', {
read: false,
write: false,
admin: false,
comment: false,
})
store.set('users', {})
store.set('reviewPanel.layoutToLeft', false)
store.set('reviewPanel.rendererData.lineHeight', 0)
store.set('resolveComment', () => {})
store.set('submitNewComment', async () => {})
store.set('deleteComment', () => {})
store.set('gotoEntry', () => {})
store.set('saveEdit', () => {})
store.set('deleteThread', () => {})
store.set('refreshResolvedCommentsDropdown', async () => {})
store.set('acceptChanges', () => {})
store.set('rejectChanges', () => {})
store.set('bulkAcceptActions', () => {})
store.set('bulkRejectActions', () => {})
store.set('submitReply', () => {})
store.set('addNewComment', () => {})
}