forked from MapComplete/MapComplete
Performance: Remove 'AllKnownLayouts' as much as possible
This commit is contained in:
parent
0e4cce59ea
commit
0f60977b6d
7 changed files with 27 additions and 64 deletions
|
@ -3,9 +3,6 @@ import { QueryParameters } from "./Web/QueryParameters"
|
|||
import { AllKnownLayouts } from "../Customizations/AllKnownLayouts"
|
||||
import { FixedUiElement } from "../UI/Base/FixedUiElement"
|
||||
import { Utils } from "../Utils"
|
||||
import Combine from "../UI/Base/Combine"
|
||||
import { SubtleButton } from "../UI/Base/SubtleButton"
|
||||
import BaseUIElement from "../UI/BaseUIElement"
|
||||
import { UIEventSource } from "./UIEventSource"
|
||||
import { LocalStorageSource } from "./Web/LocalStorageSource"
|
||||
import LZString from "lz-string"
|
||||
|
@ -16,7 +13,6 @@ import { PrepareTheme } from "../Models/ThemeConfig/Conversion/PrepareTheme"
|
|||
import licenses from "../assets/generated/license_info.json"
|
||||
import TagRenderingConfig from "../Models/ThemeConfig/TagRenderingConfig"
|
||||
import { FixImages } from "../Models/ThemeConfig/Conversion/FixImages"
|
||||
import Svg from "../Svg"
|
||||
import questions from "../assets/generated/layers/questions.json"
|
||||
import {
|
||||
DoesImageExist,
|
||||
|
|
|
@ -43,7 +43,7 @@ export class ChangesetHandler {
|
|||
this.userDetails = osmConnection.userDetails
|
||||
this.backend = osmConnection._oauth_config.url
|
||||
|
||||
if (dryRun) {
|
||||
if (dryRun.data) {
|
||||
console.log("DRYRUN ENABLED")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -161,6 +161,7 @@ export class OsmConnection {
|
|||
this.userDetails.ping()
|
||||
console.log("Logged out")
|
||||
this.loadingStatus.setData("not-attempted")
|
||||
this.preferencesHandler.preferences.setData(undefined)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue