MOBILE-3371 core: Improve manager sources

This commit is contained in:
Noel De Martin 2023-06-28 13:08:50 +02:00
parent f373ec9149
commit c11fd99a0a

View File

@ -36,6 +36,15 @@ export abstract class CoreItemsManagerSource<Item = unknown> {
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.
*