forked from MapComplete/MapComplete
Fix #691
This commit is contained in:
parent
b9546d8ea6
commit
3fb7cc90fc
12 changed files with 100 additions and 97 deletions
|
@ -25,6 +25,7 @@ import Combine from "./Base/Combine";
|
|||
import AddNewMarker from "./BigComponents/AddNewMarker";
|
||||
import FilteredLayer from "../Models/FilteredLayer";
|
||||
import ExtraLinkButton from "./BigComponents/ExtraLinkButton";
|
||||
import {SubtleButton} from "./Base/SubtleButton";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -163,11 +164,22 @@ export default class DefaultGUI {
|
|||
() => new UserBadge(state)
|
||||
),
|
||||
Toggle.If(state.featureSwitchExtraLinkEnabled,
|
||||
() => new ExtraLinkButton(state, state.layoutToUse.extraLink)
|
||||
() => {
|
||||
if (state.layoutToUse.extraLink.text === undefined) {
|
||||
return Translations.t.general.screenToSmall
|
||||
}
|
||||
return new ExtraLinkButton(state, state.layoutToUse.extraLink);
|
||||
}
|
||||
)
|
||||
]).SetClass("flex flex-col")
|
||||
.AttachTo("userbadge")
|
||||
|
||||
const el = state.layoutToUse.extraLink
|
||||
new Combine([
|
||||
new ExtraLinkButton(state, {...state.layoutToUse.extraLink, newTab: true})
|
||||
]).SetClass("flex items-center justify-center normal-background h-full")
|
||||
.AttachTo("on-small-screen")
|
||||
|
||||
Toggle.If(state.featureSwitchSearch,
|
||||
() => new SearchAndGo(state))
|
||||
.AttachTo("searchbox");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue