mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #17400 from overleaf/msm-fix-permissions-disconnection
[web] Fix editor still enabled during disconnection GitOrigin-RevId: 55bf7a6a8a77850c86011f1e70930b354a9d7e98
This commit is contained in:
parent
1c34a3fa68
commit
ee4b8c0868
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ export default ConnectionManager = (function () {
|
|||
this.updateConnectionManagerState('inactive')
|
||||
this.shuttingDown = true // prevent reconnection attempts
|
||||
this.$scope.$apply(() => {
|
||||
this.$scope.permissions.write = false
|
||||
this.$scope.permissions = { ...this.$scope.permissions, write: false }
|
||||
return (this.$scope.connection.forced_disconnect = true)
|
||||
})
|
||||
// flush changes before disconnecting
|
||||
|
|
Loading…
Reference in a new issue