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) {
|
||||
millisTillChangesAreSaved.setData(0);
|
||||
self.uploadAll(() => {
|
||||
console.log("Uplaoded changes: more then 10 pending changes")
|
||||
console.log("Uploaded changes: more then 10 pending changes")
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -336,7 +336,7 @@ export class OsmConnection {
|
|||
return;
|
||||
}
|
||||
const mapping = OsmConnection.parseUploadChangesetResponse(response);
|
||||
console.log("Uplaoded changeset ", changesetId);
|
||||
console.log("Uploaded changeset ", changesetId);
|
||||
continuation(changesetId, mapping);
|
||||
});
|
||||
}
|
||||
|
|
2
State.ts
2
State.ts
|
@ -24,6 +24,8 @@ export class State {
|
|||
// The singleton of the global state
|
||||
public static state: State;
|
||||
|
||||
public static vNumber = "0.0.1";
|
||||
|
||||
public static runningFromConsole: boolean = false;
|
||||
|
||||
/**
|
||||
|
|
|
@ -62,7 +62,8 @@ export class MoreScreen extends UIElement {
|
|||
tr.intro,
|
||||
tr.requestATheme,
|
||||
new VerticalCombine(els),
|
||||
tr.streetcomplete
|
||||
tr.streetcomplete,
|
||||
new FixedUiElement(State.vNumber)
|
||||
]).Render();
|
||||
}
|
||||
|
||||
|
|
|
@ -68,10 +68,7 @@ export class SimpleAddUI extends UIElement {
|
|||
() => {
|
||||
self.confirmButton = new SubtleButton(preset.icon,
|
||||
new Combine([
|
||||
"Add a ",
|
||||
"<b>",
|
||||
preset.title,
|
||||
"</b> here<br/>",
|
||||
Translations.t.general.add.confirmButton.Subs({category: preset.title}),
|
||||
preset.description !== undefined ? preset.description : ""]));
|
||||
self.confirmButton.onClick(self.CreatePoint(preset.tags, layer));
|
||||
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.",
|
||||
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({
|
||||
|
|
Loading…
Reference in a new issue