Skip to content

Commit

Permalink
Merge pull request #8951 from marcellamaki/search-to-filter-button
Browse files Browse the repository at this point in the history
Update button on library page to also read 'filter'
  • Loading branch information
rtibbles committed Dec 17, 2021
2 parents a1b8cfa + 4fcae07 commit 24d9c4a
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 24d9c4a

Please sign in to comment.