Skip to content

Commit

Permalink
AnMi: Replaced KResponsiveWindow mixin by useKResponsiveWindow compos…
Browse files Browse the repository at this point in the history
…able in Facility plugin
  • Loading branch information
andreamisuraca committed Oct 3, 2023
1 parent cdd31ba commit bbecf85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kolibri/plugins/facility/assets/src/views/DataPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
import urls from 'kolibri.urls';
import { FacilityResource } from 'kolibri.resources';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import KResponsiveWindowMixin from 'kolibri-design-system/lib/KResponsiveWindowMixin';
import useKResponsiveWindow from 'kolibri.coreVue.composables.useKResponsiveWindow';
import validationConstants from 'kolibri-design-system/lib/KDateRange/validationConstants';
import { currentLanguage } from 'kolibri.utils.i18n';
import { now } from 'kolibri.utils.serverClock';
Expand Down Expand Up @@ -218,7 +218,7 @@
LearnMoreModal,
KDateRange,
},
mixins: [commonCoreStrings, KResponsiveWindowMixin],
mixins: [commonCoreStrings],
data() {
return {
showLearnMoreSummaryModal: false,
Expand Down Expand Up @@ -249,7 +249,8 @@
return this.$route.name === PageNames.DATA_EXPORT_PAGE;
},
windowSizeStyle() {
if (this.windowIsMedium || this.windowIsSmall) {
const { windowIsMedium, windowIsSmall } = useKResponsiveWindow();
if (windowIsMedium || windowIsSmall) {
return 'section-buttons-flex';
}
return {};
Expand Down

0 comments on commit bbecf85

Please sign in to comment.