Skip to content

Commit fe32c75

Browse files
committed
Allow application of a primary language filter to shape all library browsing.
1 parent 22f72d7 commit fe32c75

File tree

22 files changed

+437
-625
lines changed

22 files changed

+437
-625
lines changed

kolibri/plugins/coach/assets/src/composables/useResourceSelection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import useFetch from './useFetch';
5353
* @property {(resources: Array<Object>) => void} setSelectedResources Replaces the current
5454
* `selectedResources` array with the provided resources array.
5555
* @property {() => void} clearSearch Clears the current search terms and results.
56-
* @property {(tag: Object) => void} removeSearchFilterTag Removes the specified tag from the
56+
* @property {(tag: Object) => void} removeSearchTerm Removes the specified term from the
5757
* search terms.
5858
*
5959
* @returns {UseResourceSelectionResponse}
@@ -243,6 +243,6 @@ export default function useResourceSelection({
243243
deselectResources,
244244
setSelectedResources,
245245
clearSearch: useSearchObject.clearSearch,
246-
removeSearchFilterTag: useSearchObject.removeFilterTag,
246+
removeSearchTerm: useSearchObject.removeSearchTerm,
247247
};
248248
}

kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
@selectResources="handleSelectResources"
4848
@deselectResources="handleDeselectResources"
4949
@setSelectedResources="setSelectedResources"
50-
@removeSearchFilterTag="removeSearchFilterTag"
50+
@removeSearchTerm="removeSearchTerm"
5151
/>
5252

5353
<template
@@ -138,7 +138,7 @@
138138
selectResources,
139139
deselectResources,
140140
setSelectedResources,
141-
removeSearchFilterTag,
141+
removeSearchTerm,
142142
} = useResourceSelection({
143143
searchResultsRouteName: PageNames.LESSON_SELECT_RESOURCES_SEARCH_RESULTS,
144144
});
@@ -202,7 +202,7 @@
202202
setSelectedResources,
203203
notifyResourcesAdded,
204204
notifySaveLessonError,
205-
removeSearchFilterTag,
205+
removeSearchTerm,
206206
backAction$,
207207
cancelAction$,
208208
continueAction$,

kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectFromSearchResults.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<SearchChips
2020
class="mb-16"
2121
:searchTerms="searchTerms"
22-
@removeItem="onRemoveSearchFilterTag"
22+
@removeItem="onRemoveSearchTerm"
2323
@clearSearch="onClearSearch"
2424
/>
2525

@@ -211,8 +211,8 @@
211211
this.$emit('clearSearch');
212212
this.redirectBack();
213213
},
214-
onRemoveSearchFilterTag(item, { isLast }) {
215-
this.$emit('removeSearchFilterTag', item);
214+
onRemoveSearchTerm(item, { isLast }) {
215+
this.$emit('removeSearchTerm', item);
216216
if (isLast) {
217217
this.redirectBack();
218218
}

0 commit comments

Comments
 (0)