forked from MapComplete/MapComplete
Small layout tweaks, fix #751
This commit is contained in:
parent
972d702315
commit
e7e8a1a219
7 changed files with 57 additions and 51 deletions
|
@ -45,10 +45,12 @@ export default class ExtraLinkButton extends UIElement {
|
|||
|
||||
let link: BaseUIElement
|
||||
const theme = this.state.layoutToUse?.id ?? ""
|
||||
const basepath = window.location.host
|
||||
const href = this.state.locationControl.map(loc => {
|
||||
const subs = {
|
||||
...loc,
|
||||
theme: theme,
|
||||
basepath,
|
||||
language: Locale.language.data
|
||||
}
|
||||
return Utils.SubstituteKeys(c.href, subs)
|
||||
|
@ -68,8 +70,7 @@ export default class ExtraLinkButton extends UIElement {
|
|||
}
|
||||
|
||||
link = new SubtleButton(img, text, {
|
||||
url:
|
||||
href,
|
||||
url: href,
|
||||
newTab: c.newTab
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue