From be8ed25daaaa9635ff64ed063e5bcd935af92673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 6 Apr 2022 09:50:17 +0200 Subject: [PATCH] MOBILE-3833 course: Deprecate skipListStatus on prefetch handlers --- src/addons/mod/label/services/handlers/prefetch.ts | 1 - src/core/features/course/classes/module-prefetch-handler.ts | 6 ------ .../features/course/services/module-prefetch-delegate.ts | 4 +++- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/addons/mod/label/services/handlers/prefetch.ts b/src/addons/mod/label/services/handlers/prefetch.ts index 50feb8c62..72f153fa5 100644 --- a/src/addons/mod/label/services/handlers/prefetch.ts +++ b/src/addons/mod/label/services/handlers/prefetch.ts @@ -31,7 +31,6 @@ export class AddonModLabelPrefetchHandlerService extends CoreCourseResourcePrefe modName = 'label'; component = AddonModLabelProvider.COMPONENT; updatesNames = /^.*files$/; - skipListStatus = true; /** * @inheritdoc diff --git a/src/core/features/course/classes/module-prefetch-handler.ts b/src/core/features/course/classes/module-prefetch-handler.ts index ab9bf9fda..79dfd6bc7 100644 --- a/src/core/features/course/classes/module-prefetch-handler.ts +++ b/src/core/features/course/classes/module-prefetch-handler.ts @@ -47,12 +47,6 @@ export class CoreCourseModulePrefetchHandlerBase implements CoreCourseModulePref */ updatesNames = /^.*files$/; - /** - * If true, this module will be ignored when determining the status of a list of modules. The module will - * still be downloaded when downloading the section/course, it only affects whether the button should be displayed. - */ - skipListStatus = false; - /** * List of download promises to prevent downloading the module twice at the same time. */ diff --git a/src/core/features/course/services/module-prefetch-delegate.ts b/src/core/features/course/services/module-prefetch-delegate.ts index 91e069b40..992e069e8 100644 --- a/src/core/features/course/services/module-prefetch-delegate.ts +++ b/src/core/features/course/services/module-prefetch-delegate.ts @@ -1361,8 +1361,10 @@ export interface CoreCourseModulePrefetchHandler extends CoreDelegateHandler { /** * If true, this module will be treated as not downloadable when determining the status of a list of modules. The module will * still be downloaded when downloading the section/course, it only affects whether the button should be displayed. + * + * @depracated since app 4.0. */ - skipListStatus: boolean; + skipListStatus?: boolean; /** * Get the download size of a module.