forked from MapComplete/MapComplete
Cleaning away fullscreenmessage
This commit is contained in:
parent
977991cced
commit
7f1b78198a
12 changed files with 50 additions and 145 deletions
|
@ -11,7 +11,7 @@ export default class LayerControlPanel extends UIElement {
|
|||
private readonly _panel: UIElement;
|
||||
|
||||
|
||||
constructor() {
|
||||
constructor(onClose: () => void) {
|
||||
super();
|
||||
let layerControlPanel: UIElement = new FixedUiElement("");
|
||||
if (State.state.layoutToUse.data.enableBackgroundLayerSelection) {
|
||||
|
@ -31,7 +31,9 @@ export default class LayerControlPanel extends UIElement {
|
|||
|
||||
const title =Translations.t.general.layerSelection.title.SetClass("featureinfobox-title")
|
||||
|
||||
this._panel = new ScrollableFullScreen(title, layerControlPanel);
|
||||
this._panel = new ScrollableFullScreen(title, layerControlPanel, () => {
|
||||
onClose
|
||||
});
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue