From c11fd99a0ab8c66c9759bc1965cf67d1835dc7bc Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 28 Jun 2023 13:08:50 +0200 Subject: [PATCH] MOBILE-3371 core: Improve manager sources --- .../classes/items-management/items-manager-source.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/classes/items-management/items-manager-source.ts b/src/core/classes/items-management/items-manager-source.ts index c2d6fe0fd..5cc375913 100644 --- a/src/core/classes/items-management/items-manager-source.ts +++ b/src/core/classes/items-management/items-manager-source.ts @@ -36,6 +36,15 @@ export abstract class CoreItemsManagerSource { this.loadedPromise = new Promise(resolve => this.resolveLoaded = resolve); } + /** + * Check whether the source is dirty. + * + * @returns Whether the source is dirty. + */ + isDirty(): boolean { + return this.dirty; + } + /** * Check whether data is loaded. *