forked from MapComplete/MapComplete
Reformat all files with prettier
This commit is contained in:
parent
e22d189376
commit
b541d3eab4
382 changed files with 50893 additions and 35566 deletions
|
@ -1,32 +1,35 @@
|
|||
import Combine from "../Base/Combine";
|
||||
import {FlowStep} from "./FlowStep";
|
||||
import {Store, UIEventSource} from "../../Logic/UIEventSource";
|
||||
import Link from "../Base/Link";
|
||||
import CheckBoxes from "../Input/Checkboxes";
|
||||
import Title from "../Base/Title";
|
||||
import Translations from "../i18n/Translations";
|
||||
|
||||
export class ConfirmProcess extends Combine implements FlowStep<{ features: any[], theme: string }> {
|
||||
import Combine from "../Base/Combine"
|
||||
import { FlowStep } from "./FlowStep"
|
||||
import { Store, UIEventSource } from "../../Logic/UIEventSource"
|
||||
import Link from "../Base/Link"
|
||||
import CheckBoxes from "../Input/Checkboxes"
|
||||
import Title from "../Base/Title"
|
||||
import Translations from "../i18n/Translations"
|
||||
|
||||
export class ConfirmProcess
|
||||
extends Combine
|
||||
implements FlowStep<{ features: any[]; theme: string }>
|
||||
{
|
||||
public IsValid: Store<boolean>
|
||||
public Value: Store<{ features: any[], theme: string }>
|
||||
public Value: Store<{ features: any[]; theme: string }>
|
||||
|
||||
constructor(v: { features: any[], theme: string }) {
|
||||
const t = Translations.t.importHelper.confirmProcess;
|
||||
constructor(v: { features: any[]; theme: string }) {
|
||||
const t = Translations.t.importHelper.confirmProcess
|
||||
const elements = [
|
||||
new Link(t.readImportGuidelines, "https://wiki.openstreetmap.org/wiki/Import_guidelines", true),
|
||||
new Link(
|
||||
t.readImportGuidelines,
|
||||
"https://wiki.openstreetmap.org/wiki/Import_guidelines",
|
||||
true
|
||||
),
|
||||
t.contactedCommunity,
|
||||
t.licenseIsCompatible,
|
||||
t.wikipageIsMade
|
||||
t.wikipageIsMade,
|
||||
]
|
||||
const toConfirm = new CheckBoxes(elements);
|
||||
const toConfirm = new CheckBoxes(elements)
|
||||
|
||||
super([
|
||||
new Title(t.titleLong),
|
||||
toConfirm,
|
||||
]);
|
||||
super([new Title(t.titleLong), toConfirm])
|
||||
this.SetClass("link-underline")
|
||||
this.IsValid = toConfirm.GetValue().map(selected => elements.length == selected.length)
|
||||
this.Value = new UIEventSource<{ features: any[], theme: string }>(v)
|
||||
this.IsValid = toConfirm.GetValue().map((selected) => elements.length == selected.length)
|
||||
this.Value = new UIEventSource<{ features: any[]; theme: string }>(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue