Skip to content

Commit

Permalink
No results for not visible lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
radinamatic committed Sep 28, 2023
1 parent ea1ee36 commit 601fcd0
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,19 @@
</template>
</CoreTable>

<p v-if="!hasVisibleLessons">
<p
v-if="!hasVisibleLessons &&
lessons.length"
>

{{ coreString('noResultsLabel') }}
</p>

<p
v-if="!hasNotVisibleLessons &&
lessons.length"
>

{{ coreString('noResultsLabel') }}
</p>

Expand Down Expand Up @@ -242,6 +254,11 @@
!this.activeLessonCounts.true && this.filterSelection.value === 'filterLessonVisible'
);
},
hasNotVisibleLessons() {
return !(
!this.activeLessonCounts.false && this.filterSelection.value === 'filterLessonNotVisible'
);
},
calcTotalSizeOfVisibleLessons() {
if (this.lessons && this.lessons.length) {
const sum = this.lessons
Expand Down

0 comments on commit 601fcd0

Please sign in to comment.