mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Move the access-level sync out of the share controller.
This means sync will work even for clients which don't show the share button in the menu bar.
This commit is contained in:
@@ -185,4 +185,9 @@ define [
|
||||
# User can append ?ft=somefeature to url to activate a feature toggle
|
||||
ide.featureToggle = location?.search?.match(/^\?ft=(\w+)$/)?[1]
|
||||
|
||||
ide.socket.on 'project:publicAccessLevel:changed', (data) =>
|
||||
if data.newAccessLevel?
|
||||
ide.$scope.project.publicAccesLevel = data.newAccessLevel
|
||||
$scope.$digest()
|
||||
|
||||
angular.bootstrap(document.body, ["SharelatexApp"])
|
||||
|
||||
@@ -17,11 +17,6 @@ define [
|
||||
ide.$scope.project.tokens = data.tokens
|
||||
$scope.$digest()
|
||||
|
||||
ide.socket.on 'project:publicAccessLevel:changed', (data) =>
|
||||
if data.newAccessLevel?
|
||||
ide.$scope.project.publicAccesLevel = data.newAccessLevel
|
||||
$scope.$digest()
|
||||
|
||||
ide.socket.on 'project:membership:changed', (data) =>
|
||||
if data.members
|
||||
projectMembers.getMembers()
|
||||
|
||||
Reference in New Issue
Block a user