forked from MapComplete/MapComplete
Studio: add delete button for layers
This commit is contained in:
parent
22095f4640
commit
eb5cc4d78c
4 changed files with 39 additions and 17 deletions
|
@ -107,6 +107,9 @@ export abstract class EditJsonState<T> {
|
|||
return entry
|
||||
}
|
||||
|
||||
public async delete(){
|
||||
await this.server.delete(this.getId().data, this.category)
|
||||
}
|
||||
public getStoreFor<T>(path: ReadonlyArray<string | number>): UIEventSource<T | undefined> {
|
||||
const key = path.join(".")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue