MOBILE-3371 core: Improve manager sources

main
Noel De Martin 2023-06-28 13:08:50 +02:00
parent f373ec9149
commit c11fd99a0a
1 changed files with 9 additions and 0 deletions

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.
*