More refactoring and fixes

This commit is contained in:
Pieter Vander Vennet 2022-06-06 19:37:22 +02:00
parent 1bc7d9118a
commit 9877abec17
14 changed files with 375 additions and 151 deletions

View file

@ -1,4 +1,4 @@
import {Store, UIEventSource} from "../../Logic/UIEventSource";
import {ImmutableStore, Store} from "../../Logic/UIEventSource";
import Translations from "../i18n/Translations";
import {OsmConnection} from "../../Logic/Osm/OsmConnection";
import Toggle from "../Input/Toggle";
@ -29,7 +29,7 @@ export class SaveButton extends Toggle {
super(
save,
pleaseLogin,
osmConnection?.isLoggedIn ?? new UIEventSource<any>(false)
osmConnection?.isLoggedIn ?? new ImmutableStore(false)
)
}