From 4f6d0b43fb7b4b8604a55f63da9e4f72717c28c8 Mon Sep 17 00:00:00 2001 From: iskipu Date: Fri, 26 Jan 2024 18:02:55 +0530 Subject: [PATCH 1/5] checking current url contains device route --- kolibri/core/assets/src/views/StorageNotification.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kolibri/core/assets/src/views/StorageNotification.vue b/kolibri/core/assets/src/views/StorageNotification.vue index 4697c25b52f..b4b58abdbb1 100644 --- a/kolibri/core/assets/src/views/StorageNotification.vue +++ b/kolibri/core/assets/src/views/StorageNotification.vue @@ -1,6 +1,10 @@ + + @@ -36,8 +45,10 @@ import AppBarPage from 'kolibri.coreVue.components.AppBarPage'; import ImmersivePage from 'kolibri.coreVue.components.ImmersivePage'; import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; + import { LearnerDeviceStatus } from 'kolibri.coreVue.vuex.constants'; import LearnTopNav from './LearnTopNav'; import DeviceConnectionStatus from './DeviceConnectionStatus.vue'; + import StorageNotification from './StorageNotification'; export default { name: 'LearnAppBarPage', @@ -46,6 +57,7 @@ ImmersivePage, LearnTopNav, DeviceConnectionStatus, + StorageNotification, }, mixins: [commonCoreStrings], @@ -78,6 +90,9 @@ page() { return this.deviceId ? 'ImmersivePage' : 'AppBarPage'; }, + showStorageNotification() { + return this.userDeviceStatus === LearnerDeviceStatus.INSUFFICIENT_STORAGE; + }, }, }; diff --git a/kolibri/core/assets/src/views/StorageNotification.vue b/kolibri/plugins/learn/assets/src/views/StorageNotification.vue similarity index 96% rename from kolibri/core/assets/src/views/StorageNotification.vue rename to kolibri/plugins/learn/assets/src/views/StorageNotification.vue index b4b58abdbb1..7263e73696b 100644 --- a/kolibri/core/assets/src/views/StorageNotification.vue +++ b/kolibri/plugins/learn/assets/src/views/StorageNotification.vue @@ -1,10 +1,6 @@