forked from MapComplete/MapComplete
chore: refactoring, linting, removing obsolete files
This commit is contained in:
parent
b7a4930583
commit
2bc2a6cddf
54 changed files with 125 additions and 457 deletions
|
|
@ -4,7 +4,6 @@
|
|||
import Translations from "../i18n/Translations"
|
||||
import { Store } from "../../Logic/UIEventSource"
|
||||
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
|
||||
import { GeoOperations } from "../../Logic/GeoOperations"
|
||||
import type { Feature, LineString } from "geojson"
|
||||
import { Utils } from "../../Utils"
|
||||
import { Translation } from "../i18n/Translation"
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
<button
|
||||
class="primary"
|
||||
class:disabled={$selectedLanguages.length === 0}
|
||||
on:click={(_) => applySelectedLanguages()}
|
||||
on:click={() => applySelectedLanguages()}
|
||||
>
|
||||
<Tr t={Translations.t.general.save} />
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -35,14 +35,13 @@ class MultiApplyExecutor {
|
|||
}
|
||||
|
||||
if (p.autoapply) {
|
||||
const self = this
|
||||
const relevantValues = p.tagsSource.map((tags) => {
|
||||
const currentValues = p.keysToApply.map((key) => tags[key])
|
||||
// By stringifying, we have a very clear ping when they changec
|
||||
return JSON.stringify(currentValues)
|
||||
})
|
||||
relevantValues.addCallbackD((_) => {
|
||||
self.applyTaggingOnOtherFeatures()
|
||||
relevantValues.addCallbackD(() => {
|
||||
this.applyTaggingOnOtherFeatures()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,12 +12,7 @@
|
|||
import type { SpecialVisualizationState } from "../../SpecialVisualization"
|
||||
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
|
||||
import TagRenderingQuestion from "./TagRenderingQuestion.svelte"
|
||||
import type { UploadableTag } from "../../../Logic/Tags/TagUtils"
|
||||
import { writable } from "svelte/store"
|
||||
import Translations from "../../i18n/Translations"
|
||||
import { twJoin } from "tailwind-merge"
|
||||
import Tr from "../../Base/Tr.svelte"
|
||||
import { TrashIcon } from "@rgossiaux/svelte-heroicons/solid"
|
||||
import type { UploadableTag } from "../../../Logic/Tags/TagTypes"
|
||||
import Loading from "../../Base/Loading.svelte"
|
||||
|
||||
export let config: TagRenderingConfig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue