diff --git a/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue index e8bf41b0045..72e80b42cfd 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue @@ -89,19 +89,7 @@ -
- - {{ coreString('noResultsLabel') }} -
- -- +
{{ coreString('noResultsLabel') }}
@@ -250,14 +238,21 @@ return { name: LessonsPageNames.LESSON_CREATION_ROOT }; }, hasVisibleLessons() { - return !( - !this.activeLessonCounts.true && this.filterSelection.value === 'filterLessonVisible' - ); + return this.activeLessonCounts.true; + }, + hasNonVisibleLessons() { + return this.activeLessonCounts.false; }, - hasNotVisibleLessons() { - return !( - !this.activeLessonCounts.false && this.filterSelection.value === 'filterLessonNotVisible' - ); + showNoResultsLabel() { + if (!this.lessons.length) { + return false; + } else if (this.filterSelection.value === 'filterLessonVisible') { + return !this.hasVisibleLessons; + } else if (this.filterSelection.value === 'filterLessonNotVisible') { + return !this.hasNonVisibleLessons; + } else { + return false; + } }, calcTotalSizeOfVisibleLessons() { if (this.lessons && this.lessons.length) {