forked from MapComplete/MapComplete
Hook deleteWizard into the specialVisualisations (WIP)
This commit is contained in:
parent
5d3365afb8
commit
de5f8f95bb
3 changed files with 61 additions and 21 deletions
|
@ -41,11 +41,12 @@ export default class DeleteWizard extends Toggle {
|
|||
constructor(id: string,
|
||||
options?: {
|
||||
noDeleteOptions?: { if: Tag[], then: Translation }[]
|
||||
softDeletionTags?: Tag[]
|
||||
softDeletionTags?: Tag[],
|
||||
neededChangesets?: number
|
||||
}) {
|
||||
|
||||
options = options ?? {}
|
||||
const deleteAction = new DeleteAction(id);
|
||||
const deleteAction = new DeleteAction(id, options.neededChangesets);
|
||||
const tagsSource = State.state.allElements.getEventSourceById(id)
|
||||
|
||||
let softDeletionTags = options.softDeletionTags ?? []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue