Commit a661f34d authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Use `Thread` instead of `annotation-thread` in `thread-list`

parent 80c9e2e3
...@@ -160,7 +160,7 @@ describe('threadList', function() { ...@@ -160,7 +160,7 @@ describe('threadList', function() {
element.scope.$digest(); element.scope.$digest();
assert.equal( assert.equal(
element[0].querySelectorAll('.thread-list__card--theme-clean').length, 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() { ...@@ -168,7 +168,7 @@ describe('threadList', function() {
const element = createThreadList(); const element = createThreadList();
fakeVirtualThread.notify(); fakeVirtualThread.notify();
element.scope.$digest(); element.scope.$digest();
const children = element[0].querySelectorAll('annotation-thread'); const children = element[0].querySelectorAll('thread');
assert.equal(children.length, 2); assert.equal(children.length, 2);
}); });
......
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
ng-class="{'thread-list__card--theme-clean' : vm.isThemeClean }" ng-class="{'thread-list__card--theme-clean' : vm.isThemeClean }"
ng-click="vm.onSelect({annotation: child.annotation})" ng-click="vm.onSelect({annotation: child.annotation})"
ng-mouseleave="vm.onFocus({annotation: null})"> ng-mouseleave="vm.onFocus({annotation: null})">
<annotation-thread <thread thread="child" show-document-info="vm.showDocumentInfo"></thread>
thread="child"
show-document-info="vm.showDocumentInfo"
on-change-collapsed="vm.onChangeCollapsed({id: id, collapsed: collapsed})">
</annotation-thread>
</div> </div>
<hr ng-if="vm.isThemeClean" <hr ng-if="vm.isThemeClean"
class="thread-list__separator--theme-clean" /> class="thread-list__separator--theme-clean" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment