Skip to content

Commit

Permalink
number of resources updates on selection
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOXDi committed Jan 31, 2024
1 parent 785e939 commit dbbc8a3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
:layout8="{ span: 4 }"
:layout4="{ span: 2 }"
>
{{ numberOfResources$({ count: channels.length }) }}
{{ numberOfResources$({ count: workingResourcePool.length }) }}
</KGridItem>
<KGridItem
:layout12="{ span: 6 }"
Expand Down Expand Up @@ -287,7 +287,7 @@
// topic's descendants are selected out of its total descendants -- basically answering
// "How many resources in the working resource_pool are from this topic?"
// Tracked in https://github.com/learningequality/kolibri/issues/11741
return () => '';
return () => { this.workingResourcePool.length };
// let count = 0;
// let total = 0;
// if (this.ancestorCounts[content.id]) {
Expand Down Expand Up @@ -361,10 +361,8 @@
},
toggleTopicInWorkingResources(isChecked) {
if (isChecked) {
this.isSelectAllChecked = true;
this.addToWorkingResourcePool(this.contentList);
} else {
this.isSelectAllChecked = false;
this.resetWorkingResourcePool();
}
},
Expand Down

0 comments on commit dbbc8a3

Please sign in to comment.