Merge pull request #3708 from overleaf/msm-fix-chat-stories

Fix chat stories

GitOrigin-RevId: 7a36d9649486c203ba9334a18e380a595014e646
This commit is contained in:
Alasdair Smith 2021-03-04 14:22:58 +00:00 committed by Copybot
parent d8baef0077
commit 522a71b514
2 changed files with 9 additions and 7 deletions

View file

@ -87,12 +87,7 @@ export default {
Story => (
<>
<style>{'html, body, .chat { height: 100%; width: 100%; }'}</style>
<ContextRoot
chatIsOpenAngular
setChatIsOpenAngular={() => {}}
openDoc={() => {}}
onlineUsersArray={[]}
>
<ContextRoot ide={window._ide} settings={{}}>
<Story />
</ContextRoot>
</>

View file

@ -7,7 +7,14 @@ export function setupContext() {
}
let $scope = {}
if (window._ide) {
$scope = { ...window._ide.$scope, project: {} }
$scope = {
...window._ide.$scope,
project: {},
$watch: () => {},
ui: {
chatOpen: true
}
}
}
window._ide = {
...window._ide,