forked from MapComplete/MapComplete
Chore: remove some obsolete console.logs
This commit is contained in:
parent
57e0093e47
commit
6f5b0622a5
13 changed files with 39 additions and 53 deletions
0
src/UI/Base/FileSelector.svelte
Normal file
0
src/UI/Base/FileSelector.svelte
Normal file
0
src/UI/Image/UploadImage.svelte
Normal file
0
src/UI/Image/UploadImage.svelte
Normal file
31
src/UI/Image/UploadingImageCounter.svelte
Normal file
31
src/UI/Image/UploadingImageCounter.svelte
Normal file
|
@ -0,0 +1,31 @@
|
|||
<script lang="ts">/**
|
||||
* Shows an 'upload'-button which will start the upload for this feature
|
||||
*/
|
||||
|
||||
import type { SpecialVisualizationState } from "../SpecialVisualization";
|
||||
import type { Feature } from "geojson";
|
||||
import { Store } from "../../Logic/UIEventSource";
|
||||
import type { OsmTags } from "../../Models/OsmFeature";
|
||||
import { ImageUploader } from "../../Logic/ImageProviders/ImageUploader";
|
||||
import LoginToggle from "../Base/LoginToggle.svelte";
|
||||
import Translations from "../i18n/Translations";
|
||||
import Tr from "../Base/Tr.svelte";
|
||||
import { ImageUploadManager } from "../../Logic/ImageProviders/ImageUploadManager";
|
||||
|
||||
export let state: SpecialVisualizationState;
|
||||
export let feature: Feature;
|
||||
|
||||
export let tags: Store<OsmTags>;
|
||||
export let state: SpecialVisualizationState;
|
||||
export let lon: number;
|
||||
export let lat: number;
|
||||
const t = Translations.t.image
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<LoginToggle>
|
||||
|
||||
<Tr slot="not-logged-in" t={t.pleaseLogin}/>
|
||||
|
||||
</LoginToggle>
|
|
@ -38,7 +38,6 @@
|
|||
const hasSoftDeletion = deleteConfig.softDeletionTags !== undefined
|
||||
let currentState: "start" | "confirm" | "applying" | "deleted" = "start"
|
||||
$: {
|
||||
console.log("Current state is", currentState, $canBeDeleted, canBeDeletedReason)
|
||||
deleteAbility.CheckDeleteability(true)
|
||||
}
|
||||
|
||||
|
@ -55,7 +54,6 @@
|
|||
let actionToTake: OsmChangeAction
|
||||
const changedProperties = TagUtils.changeAsProperties(selectedTags.asChange(tags?.data ?? {}))
|
||||
const deleteReason = changedProperties[DeleteConfig.deleteReasonKey]
|
||||
console.log("Deleting! Hard?:", canBeDeleted.data, deleteReason)
|
||||
if (deleteReason) {
|
||||
// This is a proper, hard deletion
|
||||
actionToTake = new DeleteAction(
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import ToSvelte from "../Base/ToSvelte.svelte"
|
||||
import { AttributedImage } from "../Image/AttributedImage"
|
||||
import AllImageProviders from "../../Logic/ImageProviders/AllImageProviders"
|
||||
import LinkPicture from "../../Logic/Osm/Actions/LinkPicture"
|
||||
import LinkImageAction from "../../Logic/Osm/Actions/LinkImageAction"
|
||||
import ChangeTagAction from "../../Logic/Osm/Actions/ChangeTagAction"
|
||||
import { Tag } from "../../Logic/Tags/Tag"
|
||||
import { GeoOperations } from "../../Logic/GeoOperations"
|
||||
|
@ -40,7 +40,7 @@
|
|||
const key = Object.keys(image.osmTags)[0]
|
||||
const url = image.osmTags[key]
|
||||
if (isLinked) {
|
||||
const action = new LinkPicture(currentTags.id, key, url, currentTags, {
|
||||
const action = new LinkImageAction(currentTags.id, key, url, currentTags, {
|
||||
theme: state.layout.id,
|
||||
changeType: "link-image",
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue