forked from MapComplete/MapComplete
Tweaks to popup closing behaviour
This commit is contained in:
parent
baf41cb79d
commit
5523603e70
3 changed files with 29 additions and 12 deletions
6
State.ts
6
State.ts
|
@ -75,12 +75,14 @@ export default class State {
|
|||
/**
|
||||
This message is shown full screen on mobile devices
|
||||
*/
|
||||
public readonly fullScreenMessage = new UIEventSource<UIElement>(undefined);
|
||||
public readonly fullScreenMessage = new UIEventSource<UIElement>(undefined)
|
||||
.addCallback(fs => console.log("Fullscreen message is", fs));
|
||||
|
||||
/**
|
||||
The latest element that was selected - used to generate the right UI at the right place
|
||||
*/
|
||||
public readonly selectedElement = new UIEventSource<any>(undefined);
|
||||
public readonly selectedElement = new UIEventSource<any>(undefined)
|
||||
.addCallback(selected => console.log("Selected element is", selected));
|
||||
|
||||
public readonly featureSwitchUserbadge: UIEventSource<boolean>;
|
||||
public readonly featureSwitchSearch: UIEventSource<boolean>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue