MOBILE-3371 core: Improve manager sources
parent
f373ec9149
commit
c11fd99a0a
|
@ -36,6 +36,15 @@ export abstract class CoreItemsManagerSource<Item = unknown> {
|
||||||
this.loadedPromise = new Promise(resolve => this.resolveLoaded = resolve);
|
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.
|
* Check whether data is loaded.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue