diff --git a/kolibri/plugins/setup_wizard/assets/src/views/OnboardingStepBase.vue b/kolibri/plugins/setup_wizard/assets/src/views/OnboardingStepBase.vue index 4acc6a9f816..6ceac57f775 100644 --- a/kolibri/plugins/setup_wizard/assets/src/views/OnboardingStepBase.vue +++ b/kolibri/plugins/setup_wizard/assets/src/views/OnboardingStepBase.vue @@ -144,7 +144,7 @@ import LanguageSwitcherModal from 'kolibri.coreVue.components.LanguageSwitcherModal'; import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; import AppError from 'kolibri-common/components/AppError'; - import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin'; + import useKResponsiveWindow from 'kolibri.coreVue.composables.useKResponsiveWindow'; import { availableLanguages, currentLanguage } from 'kolibri.utils.i18n'; import { FooterMessageTypes } from '../constants'; @@ -152,7 +152,11 @@ name: 'OnboardingStepBase', components: { AppError, CoreLogo, LanguageSwitcherModal }, inject: ['wizardService'], - mixins: [commonCoreStrings, responsiveWindowMixin], + mixins: [commonCoreStrings], + setup() { + const { windowIsSmall } = useKResponsiveWindow(); + return { windowIsSmall }; + }, props: { /** * The event sent to the state machine when the user clicks GO BACK. diff --git a/kolibri/plugins/setup_wizard/assets/src/views/SetupWizardIndex.vue b/kolibri/plugins/setup_wizard/assets/src/views/SetupWizardIndex.vue index 5f2cc331402..a0935d0c458 100644 --- a/kolibri/plugins/setup_wizard/assets/src/views/SetupWizardIndex.vue +++ b/kolibri/plugins/setup_wizard/assets/src/views/SetupWizardIndex.vue @@ -28,7 +28,7 @@ import { interpret } from 'xstate'; import { mapState } from 'vuex'; import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; - import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin'; + import useKResponsiveWindow from 'kolibri.coreVue.composables.useKResponsiveWindow'; import { checkCapability } from 'kolibri.utils.appCapabilities'; import Lockr from 'lockr'; import { wizardMachine } from '../machines/wizardMachine'; @@ -46,7 +46,11 @@ LoadingPage, ErrorPage, }, - mixins: [commonCoreStrings, responsiveWindowMixin], + mixins: [commonCoreStrings], + setup() { + const { windowIsLarge } = useKResponsiveWindow(); + return { windowIsLarge }; + }, data() { return { service: interpret(wizardMachine),