MOBILE-3371 core: Improve manager sources
This commit is contained in:
parent
f373ec9149
commit
c11fd99a0a
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user