forked from MapComplete/MapComplete
Add sublte-button, add different icon for popout
This commit is contained in:
parent
7882747424
commit
497d5c1b49
5 changed files with 63 additions and 20 deletions
5
index.ts
5
index.ts
|
@ -320,8 +320,9 @@ InitUiElements.OnlyIf(featureSwitchWelcomeMessage, () => {
|
|||
InitUiElements.InitWelcomeMessage(layoutToUse, osmConnection, bm, fullScreenMessage)
|
||||
});
|
||||
|
||||
if (window != window.top || featureSwitchIframe.data !== "false") {
|
||||
new FixedUiElement(`<a href='${window.location}' target='_blank'><span class='iframe-escape'><img src='assets/pencil.svg'></span></a>`).AttachTo("top-right")
|
||||
if ((window != window.top && featureSwitchWelcomeMessage.data === "false") || featureSwitchIframe.data !== "false") {
|
||||
console.log("WELCOME? ",featureSwitchWelcomeMessage.data)
|
||||
new FixedUiElement(`<a href='${window.location}' target='_blank'><span class='iframe-escape'><img src='assets/pop-out.svg'></span></a>`).AttachTo("top-right")
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue