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
a661f34d
Commit
a661f34d
authored
Mar 26, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `Thread` instead of `annotation-thread` in `thread-list`
parent
80c9e2e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
thread-list-test.js
src/sidebar/components/test/thread-list-test.js
+2
-2
thread-list.html
src/sidebar/templates/thread-list.html
+1
-5
No files found.
src/sidebar/components/test/thread-list-test.js
View file @
a661f34d
...
...
@@ -160,7 +160,7 @@ describe('threadList', function() {
element
.
scope
.
$digest
();
assert
.
equal
(
element
[
0
].
querySelectorAll
(
'.thread-list__card--theme-clean'
).
length
,
element
[
0
].
querySelectorAll
(
'
annotation-
thread'
).
length
element
[
0
].
querySelectorAll
(
'thread'
).
length
);
});
...
...
@@ -168,7 +168,7 @@ describe('threadList', function() {
const
element
=
createThreadList
();
fakeVirtualThread
.
notify
();
element
.
scope
.
$digest
();
const
children
=
element
[
0
].
querySelectorAll
(
'
annotation-
thread'
);
const
children
=
element
[
0
].
querySelectorAll
(
'thread'
);
assert
.
equal
(
children
.
length
,
2
);
});
...
...
src/sidebar/templates/thread-list.html
View file @
a661f34d
...
...
@@ -8,11 +8,7 @@
ng-class=
"{'thread-list__card--theme-clean' : vm.isThemeClean }"
ng-click=
"vm.onSelect({annotation: child.annotation})"
ng-mouseleave=
"vm.onFocus({annotation: null})"
>
<annotation-thread
thread=
"child"
show-document-info=
"vm.showDocumentInfo"
on-change-collapsed=
"vm.onChangeCollapsed({id: id, collapsed: collapsed})"
>
</annotation-thread>
<thread
thread=
"child"
show-document-info=
"vm.showDocumentInfo"
></thread>
</div>
<hr
ng-if=
"vm.isThemeClean"
class=
"thread-list__separator--theme-clean"
/>
...
...
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