forked from MapComplete/MapComplete
Replace userbadge with panel access to user information, add more information to user profile
This commit is contained in:
parent
bc85c9bbe7
commit
6f018a2fd8
19 changed files with 398 additions and 174 deletions
|
@ -42,11 +42,11 @@ export default class ExtraLinkButton extends UIElement {
|
|||
|
||||
const isIframe = window !== window.top
|
||||
|
||||
if (c.requirements.has("iframe") && !isIframe) {
|
||||
if (c.requirements?.has("iframe") && !isIframe) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
if (c.requirements.has("no-iframe") && isIframe) {
|
||||
if (c.requirements?.has("no-iframe") && isIframe) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
@ -82,11 +82,11 @@ export default class ExtraLinkButton extends UIElement {
|
|||
newTab: c.newTab,
|
||||
})
|
||||
|
||||
if (c.requirements.has("no-welcome-message")) {
|
||||
if (c.requirements?.has("no-welcome-message")) {
|
||||
link = new Toggle(undefined, link, this.state.featureSwitchWelcomeMessage)
|
||||
}
|
||||
|
||||
if (c.requirements.has("welcome-message")) {
|
||||
if (c.requirements?.has("welcome-message")) {
|
||||
link = new Toggle(link, undefined, this.state.featureSwitchWelcomeMessage)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue