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
10206b22
Commit
10206b22
authored
Apr 07, 2017
by
Robert Knight
Committed by
GitHub
Apr 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #345 from hypothesis/flag-count-case
Use correct case for `flagCount` key
parents
ce586351
93d9da74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
annotation-metadata.js
src/sidebar/annotation-metadata.js
+1
-1
moderation-banner-test.js
src/sidebar/components/test/moderation-banner-test.js
+1
-1
annotation-fixtures.js
src/sidebar/test/annotation-fixtures.js
+1
-1
No files found.
src/sidebar/annotation-metadata.js
View file @
10206b22
...
...
@@ -188,7 +188,7 @@ function flagCount(ann) {
if
(
!
ann
.
moderation
)
{
return
0
;
}
return
ann
.
moderation
.
flag
_c
ount
;
return
ann
.
moderation
.
flag
C
ount
;
}
module
.
exports
=
{
...
...
src/sidebar/components/test/moderation-banner-test.js
View file @
10206b22
...
...
@@ -66,7 +66,7 @@ describe('moderationBanner', function () {
it
(
'displays in a more compact form if the annotation is a reply'
,
function
()
{
var
ann
=
Object
.
assign
(
fixtures
.
oldReply
(),
{
moderation
:
{
flag
_c
ount
:
10
,
flag
C
ount
:
10
,
},
});
var
banner
=
createBanner
({
annotation
:
ann
});
...
...
src/sidebar/test/annotation-fixtures.js
View file @
10206b22
...
...
@@ -162,7 +162,7 @@ function moderatedAnnotation(modInfo) {
id
:
'ann-id'
,
hidden
:
!!
modInfo
.
hidden
,
moderation
:
{
flag
_c
ount
:
modInfo
.
flagCount
||
0
,
flag
C
ount
:
modInfo
.
flagCount
||
0
,
},
});
}
...
...
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