forked from MapComplete/MapComplete
Enable local storage for changes
This commit is contained in:
parent
3afc91b3a5
commit
3fbfbfdd6b
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import Constants from "../../Models/Constants";
|
||||||
import OsmChangeAction from "./Actions/OsmChangeAction";
|
import OsmChangeAction from "./Actions/OsmChangeAction";
|
||||||
import {ChangeDescription} from "./Actions/ChangeDescription";
|
import {ChangeDescription} from "./Actions/ChangeDescription";
|
||||||
import {Utils} from "../../Utils";
|
import {Utils} from "../../Utils";
|
||||||
|
import {LocalStorageSource} from "../Web/LocalStorageSource";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles all changes made to OSM.
|
* Handles all changes made to OSM.
|
||||||
|
@ -20,7 +21,7 @@ export class Changes {
|
||||||
*/
|
*/
|
||||||
public features = new UIEventSource<{ feature: any, freshness: Date }[]>([]);
|
public features = new UIEventSource<{ feature: any, freshness: Date }[]>([]);
|
||||||
|
|
||||||
public readonly pendingChanges = new UIEventSource<ChangeDescription[]>([]) // LocalStorageSource.GetParsed<ChangeDescription[]>("pending-changes", [])
|
public readonly pendingChanges = LocalStorageSource.GetParsed<ChangeDescription[]>("pending-changes", [])
|
||||||
private readonly isUploading = new UIEventSource(false);
|
private readonly isUploading = new UIEventSource(false);
|
||||||
|
|
||||||
private readonly previouslyCreated : OsmObject[] = []
|
private readonly previouslyCreated : OsmObject[] = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue