mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add error handlers.
This commit is contained in:
parent
eafd61a90e
commit
d59b51aacd
1 changed files with 12 additions and 6 deletions
|
@ -14,11 +14,17 @@ define [
|
|||
|
||||
ide.socket.on 'project:membership:changed', (data) =>
|
||||
if data.members
|
||||
projectMembers.getMembers().success (responseData) =>
|
||||
if responseData.members
|
||||
$scope.project.members = responseData.members
|
||||
projectMembers.getMembers()
|
||||
.success (responseData) =>
|
||||
if responseData.members
|
||||
$scope.project.members = responseData.members
|
||||
.error (responseDate) =>
|
||||
console.error "Error fetching members for project"
|
||||
if data.invites
|
||||
projectInvites.getInvites().success (responseData) =>
|
||||
if responseData.invites
|
||||
$scope.project.invites = responseData.invites
|
||||
projectInvites.getInvites()
|
||||
.success (responseData) =>
|
||||
if responseData.invites
|
||||
$scope.project.invites = responseData.invites
|
||||
.error (responseDate) =>
|
||||
console.error "Error fetching invites for project"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue