Refactoring: port 'TagApplyButton' to svelte

This commit is contained in:
Pieter Vander Vennet 2025-06-19 01:51:09 +02:00
parent 2bc2a6cddf
commit d1f7ae2462
8 changed files with 109 additions and 99 deletions

View file

@ -1,7 +1,6 @@
import { Utils } from "../../../Utils"
import { ImmutableStore, Store, UIEventSource } from "../../../Logic/UIEventSource"
import { Tag } from "../../../Logic/Tags/Tag"
import TagApplyButton from "../TagApplyButton"
import { PointImportFlowArguments } from "./PointImportFlowState"
import { Translation } from "../../i18n/Translation"
import Translations from "../../i18n/Translations"
@ -11,6 +10,7 @@ import { LayerConfigJson } from "../../../Models/ThemeConfig/Json/LayerConfigJso
import conflation_json from "../../../../assets/layers/conflation/conflation.json"
import { SpecialVisualizationState } from "../../SpecialVisualization"
import { OsmTags } from "../../../Models/OsmFeature"
import TagApplyViz from "../../SpecialVisualisations/TagApplyViz"
export interface ImportFlowArguments {
readonly text: string
@ -96,9 +96,9 @@ ${Utils.special_visualizations_importRequirementDocs}
return new ImmutableStore(tags)
}
newTags = TagApplyButton.generateTagsToApply(items, originalFeatureTags)
newTags = TagApplyViz.generateTagsToApply(items, originalFeatureTags)
} else {
newTags = TagApplyButton.generateTagsToApply(tags, originalFeatureTags)
newTags = TagApplyViz.generateTagsToApply(tags, originalFeatureTags)
}
return newTags
}