Refactoring of import button, various improvements

This commit is contained in:
Pieter Vander Vennet 2021-12-10 04:00:02 +01:00
parent cabbdf96db
commit a095af4f18
17 changed files with 527 additions and 328 deletions

View file

@ -11,7 +11,7 @@ export default abstract class OsmChangeAction {
public readonly trackStatistics: boolean;
/**
* The ID of the object that is the center of this change.
* Null if the action creates a new object
* Null if the action creates a new object (at initialization)
* Undefined if such an id does not make sense
*/
public readonly mainObjectId: string;
@ -30,4 +30,11 @@ export default abstract class OsmChangeAction {
}
protected abstract CreateChangeDescriptions(changes: Changes): Promise<ChangeDescription[]>
}
}
export abstract class OsmCreateAction extends OsmChangeAction{
public newElementId : string
public newElementIdNumber: number
}