Legacy: add fix for fs-userbadge
This commit is contained in:
parent
845a868024
commit
f2e3173eeb
1 changed files with 7 additions and 0 deletions
|
@ -75,6 +75,13 @@ export default class FeatureSwitchState extends OsmConnectionFeatureSwitches {
|
||||||
layoutToUse?.enableUserBadge ?? true,
|
layoutToUse?.enableUserBadge ?? true,
|
||||||
"Disables/Enables logging in and thus disables editing all together. This effectively puts MapComplete into read-only mode."
|
"Disables/Enables logging in and thus disables editing all together. This effectively puts MapComplete into read-only mode."
|
||||||
)
|
)
|
||||||
|
{
|
||||||
|
if(QueryParameters.wasInitialized("fs-userbadge")){
|
||||||
|
// userbadge is the legacy name for 'enable-login'
|
||||||
|
this.featureSwitchEnableLogin.setData(QueryParameters.GetBooleanQueryParameter("fs-userbadge", undefined, "Legacy").data)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.featureSwitchSearch = FeatureSwitchUtils.initSwitch(
|
this.featureSwitchSearch = FeatureSwitchUtils.initSwitch(
|
||||||
"fs-search",
|
"fs-search",
|
||||||
layoutToUse?.enableSearch ?? true,
|
layoutToUse?.enableSearch ?? true,
|
||||||
|
|
Loading…
Reference in a new issue