diff --git a/Logic/Osm/ChangesetHandler.ts b/Logic/Osm/ChangesetHandler.ts index 4314dec60..31563dc32 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) {