Replace userbadge with panel access to user information, add more information to user profile

This commit is contained in:
Pieter Vander Vennet 2022-12-13 03:46:53 +01:00
parent bc85c9bbe7
commit 6f018a2fd8
19 changed files with 398 additions and 174 deletions

View file

@ -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)
}