forked from jappel/leistungsbilanz-ts
Drag and drop working
This commit is contained in:
parent
efbb81c13d
commit
897e506b74
9 changed files with 679 additions and 63 deletions
|
|
@ -132,6 +132,16 @@ export function deleteCircuitDeviceRowById(rowId: string) {
|
|||
});
|
||||
}
|
||||
|
||||
export function moveCircuitDeviceRowById(
|
||||
rowId: string,
|
||||
input: { targetCircuitId?: string; targetSectionId?: string; createNewCircuit?: boolean }
|
||||
) {
|
||||
return request(`/api/circuit-device-rows/${rowId}/move`, {
|
||||
method: "PATCH",
|
||||
body: JSON.stringify(input),
|
||||
});
|
||||
}
|
||||
|
||||
export function renumberCircuitSection(sectionId: string) {
|
||||
return request(`/api/circuit-sections/${sectionId}/renumber`, {
|
||||
method: "POST",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue