Compare commits
No commits in common. "5291e049a1d2e880fbe277095da91b70d4812c3f" and "e9ca1d3e5d1f6a5864fac7cffbc5cce2f0f07ee5" have entirely different histories.
5291e049a1
...
e9ca1d3e5d
@ -13,7 +13,7 @@
|
|||||||
dispatch("cancelDelete", { id: delete_station.id });
|
dispatch("cancelDelete", { id: delete_station.id });
|
||||||
}
|
}
|
||||||
function deleteStation() {
|
function deleteStation() {
|
||||||
ScanStationService.scanStationControllerRemove(
|
ScanStationService.donorControllerRemove(
|
||||||
delete_station.id,
|
delete_station.id,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import { _ } from "svelte-i18n";
|
import { _ } from "svelte-i18n";
|
||||||
import { clickOutside } from "../base/outsideclick";
|
import { clickOutside } from "../base/outsideclick";
|
||||||
import { StatsClientService } from "@odit/lfk-client-js";
|
|
||||||
|
import { ScanStationService } from "@odit/lfk-client-js";
|
||||||
import Toastify from "toastify-js";
|
import Toastify from "toastify-js";
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
export let modal_open;
|
export let modal_open;
|
||||||
@ -12,7 +13,10 @@
|
|||||||
dispatch("cancelDelete", { id: delete_station.id });
|
dispatch("cancelDelete", { id: delete_station.id });
|
||||||
}
|
}
|
||||||
function deleteClient() {
|
function deleteClient() {
|
||||||
StatsClientService.statsClientControllerRemove(delete_station.id, true)
|
ScanStationService.donorControllerRemove(
|
||||||
|
delete_station.id,
|
||||||
|
true
|
||||||
|
)
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
Toastify({
|
Toastify({
|
||||||
text: $_('statsclient-deleted'),
|
text: $_('statsclient-deleted'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user