Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
e56d5bbd
Unverified
Commit
e56d5bbd
authored
Sep 24, 2018
by
Robert Knight
Committed by
GitHub
Sep 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #777 from hypothesis/fix-group-leave
Fix leaving a group from the client
parents
c9ec57cc
3b122041
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
groups.js
src/sidebar/services/groups.js
+1
-1
groups-test.js
src/sidebar/services/test/groups-test.js
+1
-1
No files found.
src/sidebar/services/groups.js
View file @
e56d5bbd
...
...
@@ -169,7 +169,7 @@ function groups($rootScope, store, api, isSidebar, localStorage, serviceUrl, ses
// by optimistically updating the session state
return
api
.
group
.
member
.
delete
({
pubid
:
id
,
user
:
'me'
,
user
id
:
'me'
,
});
}
...
...
src/sidebar/services/test/groups-test.js
View file @
e56d5bbd
...
...
@@ -314,7 +314,7 @@ describe('groups', function() {
return
s
.
leave
(
'id2'
).
then
(()
=>
{
assert
.
calledWithMatch
(
fakeApi
.
group
.
member
.
delete
,
{
pubid
:
'id2'
,
user
:
'me'
,
user
id
:
'me'
,
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment