Clicking the popup doesn't cause the login to appear anymore
This commit is contained in:
parent
4bfe078836
commit
66e5808e4e
1 changed files with 4 additions and 3 deletions
|
@ -123,11 +123,12 @@ export class OsmConnection {
|
|||
public preferenceSources : any = {}
|
||||
|
||||
public GetPreference(key: string) : UIEventSource<string>{
|
||||
if(this.preferenceSources[key] !== undefined){
|
||||
if (this.preferenceSources[key] !== undefined) {
|
||||
return this.preferenceSources[key];
|
||||
}
|
||||
this.UpdatePreferences();
|
||||
console.log("Getting preference object", key, "currently upstreamed as ",this.preferences.data[key] );
|
||||
if (this.userDetails.data.loggedIn) {
|
||||
this.UpdatePreferences();
|
||||
}
|
||||
const pref = new UIEventSource<string>(this.preferences.data[key]);
|
||||
pref.addCallback((v) => {
|
||||
this.SetPreference(key, v);
|
||||
|
|
Loading…
Reference in a new issue