forked from MapComplete/MapComplete
Fix deploy
This commit is contained in:
parent
9c53fe9868
commit
3f8b6e88d3
39 changed files with 381 additions and 562 deletions
|
@ -9,6 +9,8 @@ import {PersonalLayout} from "./PersonalLayout";
|
|||
import {Layout} from "../Customizations/Layout";
|
||||
import {SubtleButton} from "../UI/Base/SubtleButton";
|
||||
import {FixedUiElement} from "../UI/Base/FixedUiElement";
|
||||
import {Img} from "../UI/Img";
|
||||
import Svg from "../Svg";
|
||||
|
||||
export class PersonalLayersPanel extends UIElement {
|
||||
private checkboxes: UIElement[] = [];
|
||||
|
@ -50,10 +52,10 @@ export class PersonalLayersPanel extends UIElement {
|
|||
if (typeof layer === "string") {
|
||||
continue;
|
||||
}
|
||||
let icon = layer.icon ?? "./assets/checkmark.svg";
|
||||
let icon = layer.icon ?? Img.AsData(Svg.checkmark);
|
||||
let iconUnset = layer.icon ?? "";
|
||||
if (layer.icon !== undefined && typeof (layer.icon) !== "string") {
|
||||
icon = layer.icon.GetContent({"id": "node/-123456"}).txt ?? "./assets/checkmark.svg";
|
||||
icon = layer.icon.GetRenderValue({"id": "node/-123456"}).txt ?? Img.AsData(Svg.checkmark)
|
||||
iconUnset = icon;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue