forked from MapComplete/MapComplete
Add explicit api_url to config and testserver-mode indication, add id rewrite when changes are applied to fix image upload on a new object, various formatting fixes; version bump
This commit is contained in:
parent
39376c0012
commit
a4db7178f4
16 changed files with 277 additions and 192 deletions
|
@ -128,6 +128,9 @@ export class ImageUploadManager {
|
|||
targetKey,
|
||||
tags?.data?.["_orig_theme"]
|
||||
)
|
||||
|
||||
|
||||
|
||||
if (!action) {
|
||||
return
|
||||
}
|
||||
|
@ -169,13 +172,13 @@ export class ImageUploadManager {
|
|||
return undefined
|
||||
}
|
||||
}
|
||||
console.log("Uploading done, creating action for", featureId)
|
||||
console.log("Uploading image done, creating action for", featureId)
|
||||
key = targetKey ?? key
|
||||
this.increaseCountFor(this._uploadFinished, featureId)
|
||||
const action = new LinkImageAction(featureId, key, value, properties, {
|
||||
theme: theme ?? this._layout.id,
|
||||
changeType: "add-image",
|
||||
})
|
||||
this.increaseCountFor(this._uploadFinished, featureId)
|
||||
return action
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue