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 preferenceSources : any = {}
|
||||||
|
|
||||||
public GetPreference(key: string) : UIEventSource<string>{
|
public GetPreference(key: string) : UIEventSource<string>{
|
||||||
if(this.preferenceSources[key] !== undefined){
|
if (this.preferenceSources[key] !== undefined) {
|
||||||
return this.preferenceSources[key];
|
return this.preferenceSources[key];
|
||||||
}
|
}
|
||||||
this.UpdatePreferences();
|
if (this.userDetails.data.loggedIn) {
|
||||||
console.log("Getting preference object", key, "currently upstreamed as ",this.preferences.data[key] );
|
this.UpdatePreferences();
|
||||||
|
}
|
||||||
const pref = new UIEventSource<string>(this.preferences.data[key]);
|
const pref = new UIEventSource<string>(this.preferences.data[key]);
|
||||||
pref.addCallback((v) => {
|
pref.addCallback((v) => {
|
||||||
this.SetPreference(key, v);
|
this.SetPreference(key, v);
|
||||||
|
|
Loading…
Reference in a new issue