From 68d333cb0d7944d4279600cbd0d865ddc334fed8 Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Mon, 11 Jul 2022 08:49:31 -0400 Subject: [PATCH] Implement feedback --- kolibri/plugins/learn/assets/src/views/TopicsPage.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kolibri/plugins/learn/assets/src/views/TopicsPage.vue b/kolibri/plugins/learn/assets/src/views/TopicsPage.vue index 66371984665..c14fa7ae5c1 100644 --- a/kolibri/plugins/learn/assets/src/views/TopicsPage.vue +++ b/kolibri/plugins/learn/assets/src/views/TopicsPage.vue @@ -539,15 +539,12 @@ return this.contents.filter(content => content.kind !== ContentNodeKinds.TOPIC); }, resourcesDisplayed() { - let displayed; // if no folders are shown at this level, show more resources to fill the space - if (!this.showMoreResources) { - displayed = this.resources.slice(0, this.childrenToDisplay); - // otherwise display all resources - } else { - displayed = this.resources; + // or if the user has explicitly requested to show more resources + if (!this.topics.length || this.showMoreResources) { + return this.resources; } - return displayed; + return this.resources.slice(0, this.childrenToDisplay); }, moreResources() { return this.resourcesDisplayed.length < this.resources.length;