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
0e34ece6
Commit
0e34ece6
authored
May 16, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
May 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't hide empty annotation message when thread is collapsed
parent
1720fab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
EmptyAnnotation.js
src/sidebar/components/Annotation/EmptyAnnotation.js
+3
-6
EmptyAnnotation-test.js
...idebar/components/Annotation/test/EmptyAnnotation-test.js
+0
-9
No files found.
src/sidebar/components/Annotation/EmptyAnnotation.js
View file @
0e34ece6
...
...
@@ -18,7 +18,6 @@ export default function EmptyAnnotation({
threadIsCollapsed
,
onToggleReplies
,
})
{
const
isCollapsedReply
=
isReply
&&
threadIsCollapsed
;
return
(
<
article
className
=
"space-y-4"
...
...
@@ -26,11 +25,9 @@ export default function EmptyAnnotation({
isReply
?
'Reply'
:
'Annotation'
}
with unavailable content`
}
>
{
!
isCollapsedReply
&&
(
<
div
>
<
em
>
Message
not
available
.
<
/em
>
<
/div
>
)}
<
div
>
<
em
>
Message
not
available
.
<
/em
>
<
/div
>
{
onToggleReplies
&&
(
<
footer
className
=
"flex items-center"
>
<
AnnotationReplyToggle
...
...
src/sidebar/components/Annotation/test/EmptyAnnotation-test.js
View file @
0e34ece6
...
...
@@ -74,15 +74,6 @@ describe('EmptyAnnotation', () => {
'Reply with unavailable content'
);
});
it
(
'should not render a message if collapsed reply'
,
()
=>
{
const
wrapper
=
createComponent
({
isReply
:
true
,
threadIsCollapsed
:
true
,
});
assert
.
equal
(
wrapper
.
text
(),
''
);
});
});
it
(
...
...
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