forked from MapComplete/MapComplete
Add image support in notes
This commit is contained in:
parent
e8d1d5422e
commit
b15eaff55e
8 changed files with 195 additions and 66 deletions
|
@ -220,8 +220,8 @@ export class OsmConnection {
|
|||
|
||||
public closeNote(id: number | string, text?: string): Promise<any> {
|
||||
let textSuffix = ""
|
||||
if((text ?? "") !== "" ){
|
||||
textSuffix = "?text="+encodeURIComponent(text)
|
||||
if ((text ?? "") !== "") {
|
||||
textSuffix = "?text=" + encodeURIComponent(text)
|
||||
}
|
||||
return new Promise((ok, error) => {
|
||||
this.auth.xhr({
|
||||
|
@ -241,8 +241,8 @@ export class OsmConnection {
|
|||
|
||||
public reopenNote(id: number | string, text?: string): Promise<any> {
|
||||
let textSuffix = ""
|
||||
if((text ?? "") !== "" ){
|
||||
textSuffix = "?text="+encodeURIComponent(text)
|
||||
if ((text ?? "") !== "") {
|
||||
textSuffix = "?text=" + encodeURIComponent(text)
|
||||
}
|
||||
return new Promise((ok, error) => {
|
||||
this.auth.xhr({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue