Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update button on library page to also read 'filter' #8951

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion kolibri/plugins/learn/assets/src/views/LibraryPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div v-if="!windowIsLarge">
<KButton
icon="filter"
:text="coreString('searchLabel')"
:text="translator.$tr('filter')"
:primary="false"
@click="toggleSidePanelVisibility"
/>
Expand Down Expand Up @@ -239,6 +239,8 @@
import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import FullScreenSidePanel from 'kolibri.coreVue.components.FullScreenSidePanel';
import FilterTextbox from 'kolibri.coreVue.components.FilterTextbox';
import { crossComponentTranslator } from 'kolibri.utils.i18n';
import genContentLink from '../utils/genContentLink';
import { PageNames } from '../constants';
import useSearch from '../composables/useSearch';
Expand Down Expand Up @@ -374,6 +376,7 @@
},
created() {
this.search();
this.translator = crossComponentTranslator(FilterTextbox);
},
methods: {
genContentLink,
Expand Down