forked from MapComplete/MapComplete
Add translations to more parts of the import helper GUI
This commit is contained in:
parent
8db80d879a
commit
f7844d8b2b
8 changed files with 115 additions and 82 deletions
|
@ -25,15 +25,15 @@ export class FlowPanelFactory<T> {
|
|||
this._stepNames = stepNames;
|
||||
}
|
||||
|
||||
public static start<TOut>(name: string | BaseUIElement, step: FlowStep<TOut>): FlowPanelFactory<TOut> {
|
||||
return new FlowPanelFactory(step, [], [name])
|
||||
public static start<TOut>(name:{title: BaseUIElement}, step: FlowStep<TOut>): FlowPanelFactory<TOut> {
|
||||
return new FlowPanelFactory(step, [], [name.title])
|
||||
}
|
||||
|
||||
public then<TOut>(name: string | BaseUIElement, construct: ((t: T) => FlowStep<TOut>)): FlowPanelFactory<TOut> {
|
||||
public then<TOut>(name: string | {title: BaseUIElement}, construct: ((t: T) => FlowStep<TOut>)): FlowPanelFactory<TOut> {
|
||||
return new FlowPanelFactory<TOut>(
|
||||
this._initial,
|
||||
this._steps.concat([construct]),
|
||||
this._stepNames.concat([name])
|
||||
this._stepNames.concat([name["title"] ?? name])
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue