Small changes, add version number
This commit is contained in:
parent
85dea15c83
commit
2bfeb67a3a
6 changed files with 12 additions and 7 deletions
|
@ -320,7 +320,7 @@ export class Changes {
|
||||||
if (c > 10) {
|
if (c > 10) {
|
||||||
millisTillChangesAreSaved.setData(0);
|
millisTillChangesAreSaved.setData(0);
|
||||||
self.uploadAll(() => {
|
self.uploadAll(() => {
|
||||||
console.log("Uplaoded changes: more then 10 pending changes")
|
console.log("Uploaded changes: more then 10 pending changes")
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -336,7 +336,7 @@ export class OsmConnection {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const mapping = OsmConnection.parseUploadChangesetResponse(response);
|
const mapping = OsmConnection.parseUploadChangesetResponse(response);
|
||||||
console.log("Uplaoded changeset ", changesetId);
|
console.log("Uploaded changeset ", changesetId);
|
||||||
continuation(changesetId, mapping);
|
continuation(changesetId, mapping);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
2
State.ts
2
State.ts
|
@ -24,6 +24,8 @@ export class State {
|
||||||
// The singleton of the global state
|
// The singleton of the global state
|
||||||
public static state: State;
|
public static state: State;
|
||||||
|
|
||||||
|
public static vNumber = "0.0.1";
|
||||||
|
|
||||||
public static runningFromConsole: boolean = false;
|
public static runningFromConsole: boolean = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -62,7 +62,8 @@ export class MoreScreen extends UIElement {
|
||||||
tr.intro,
|
tr.intro,
|
||||||
tr.requestATheme,
|
tr.requestATheme,
|
||||||
new VerticalCombine(els),
|
new VerticalCombine(els),
|
||||||
tr.streetcomplete
|
tr.streetcomplete,
|
||||||
|
new FixedUiElement(State.vNumber)
|
||||||
]).Render();
|
]).Render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,10 +68,7 @@ export class SimpleAddUI extends UIElement {
|
||||||
() => {
|
() => {
|
||||||
self.confirmButton = new SubtleButton(preset.icon,
|
self.confirmButton = new SubtleButton(preset.icon,
|
||||||
new Combine([
|
new Combine([
|
||||||
"Add a ",
|
Translations.t.general.add.confirmButton.Subs({category: preset.title}),
|
||||||
"<b>",
|
|
||||||
preset.title,
|
|
||||||
"</b> here<br/>",
|
|
||||||
preset.description !== undefined ? preset.description : ""]));
|
preset.description !== undefined ? preset.description : ""]));
|
||||||
self.confirmButton.onClick(self.CreatePoint(preset.tags, layer));
|
self.confirmButton.onClick(self.CreatePoint(preset.tags, layer));
|
||||||
self._confirmPreset.setData({
|
self._confirmPreset.setData({
|
||||||
|
|
|
@ -820,6 +820,11 @@ export default class Translations {
|
||||||
nl: "<h3>Voeg hier een {title} toe?</h3>Het punt dat je hier toevoegt, is <b>zichtbaar voor iedereen</b>. Veel applicaties gebruiken deze data, voeg dus enkel punten toe die echt bestaan.",
|
nl: "<h3>Voeg hier een {title} toe?</h3>Het punt dat je hier toevoegt, is <b>zichtbaar voor iedereen</b>. Veel applicaties gebruiken deze data, voeg dus enkel punten toe die echt bestaan.",
|
||||||
fr: "<h3>Ajouter un/une {title} ici?</h3>Le point que vous ajouter sera visible par tout le monde. Merci d'etre sûr que ce point existe réellement. Beaucoup d'autres applications reposent sur ces données.",
|
fr: "<h3>Ajouter un/une {title} ici?</h3>Le point que vous ajouter sera visible par tout le monde. Merci d'etre sûr que ce point existe réellement. Beaucoup d'autres applications reposent sur ces données.",
|
||||||
|
|
||||||
|
}),
|
||||||
|
confirmButton: new T({
|
||||||
|
en: "Add a {category} here",
|
||||||
|
nl: "Voeg hier een {category} toe",
|
||||||
|
fr: "Ajouter un/une {category} ici"
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
pickLanguage: new T({
|
pickLanguage: new T({
|
||||||
|
|
Loading…
Reference in a new issue