From 527a635d6a3d186490fed298efd266885a0507fd Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 21 Sep 2020 23:57:50 +0200 Subject: [PATCH] Add extra changeset tags --- Logic/Osm/ChangesetHandler.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Logic/Osm/ChangesetHandler.ts b/Logic/Osm/ChangesetHandler.ts index 4314dec..31563dc 100644 --- a/Logic/Osm/ChangesetHandler.ts +++ b/Logic/Osm/ChangesetHandler.ts @@ -3,6 +3,7 @@ import {UIEventSource} from "../UIEventSource"; import {ElementStorage} from "../ElementStorage"; import {Layout} from "../../Customizations/Layout"; import {State} from "../../State"; +import Locale from "../../UI/i18n/Locale"; export class ChangesetHandler { @@ -88,6 +89,12 @@ export class ChangesetHandler { continuation: (changesetId: string) => void) { const commentExtra = layout.changesetMessage !== undefined? " - "+layout.changesetMessage : ""; + + let surveySource = ""; + if(State.state.currentGPSLocation.data !== undefined){ + surveySource = '' + } + this.auth.xhr({ method: 'PUT', path: '/api/0.6/changeset/create', @@ -96,6 +103,8 @@ export class ChangesetHandler { ``, ``, ``, + ``, + surveySource, layout.maintainer !== undefined ? `` : "", ``].join("") }, function (err, response) {