Compare commits
2 Commits
e9ca1d3e5d
...
5291e049a1
Author | SHA1 | Date |
---|---|---|
Philipp Dormann | 5291e049a1 | |
Philipp Dormann | 08fbb504c9 |
|
@ -13,7 +13,7 @@
|
|||
dispatch("cancelDelete", { id: delete_station.id });
|
||||
}
|
||||
function deleteStation() {
|
||||
ScanStationService.donorControllerRemove(
|
||||
ScanStationService.scanStationControllerRemove(
|
||||
delete_station.id,
|
||||
true
|
||||
)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script>
|
||||
import { _ } from "svelte-i18n";
|
||||
import { clickOutside } from "../base/outsideclick";
|
||||
|
||||
import { ScanStationService } from "@odit/lfk-client-js";
|
||||
import { StatsClientService } from "@odit/lfk-client-js";
|
||||
import Toastify from "toastify-js";
|
||||
import { createEventDispatcher } from "svelte";
|
||||
export let modal_open;
|
||||
|
@ -13,10 +12,7 @@
|
|||
dispatch("cancelDelete", { id: delete_station.id });
|
||||
}
|
||||
function deleteClient() {
|
||||
ScanStationService.donorControllerRemove(
|
||||
delete_station.id,
|
||||
true
|
||||
)
|
||||
StatsClientService.statsClientControllerRemove(delete_station.id, true)
|
||||
.then((resp) => {
|
||||
Toastify({
|
||||
text: $_('statsclient-deleted'),
|
||||
|
|
Loading…
Reference in New Issue