@@ -9,7 +9,7 @@
|
||||
);
|
||||
import store from "../../store";
|
||||
import StatsClientsEmptyState from "./StatsClientsEmptyState.svelte";
|
||||
import ConfirmScanStationDeletion from "./ConfirmScanStationDeletion.svelte";
|
||||
import ConfirmStatsClientDeletion from "./ConfirmStatsClientDeletion.svelte";
|
||||
$: searchvalue = "";
|
||||
$: active_deletes = [];
|
||||
let delete_client = {};
|
||||
@@ -17,7 +17,7 @@
|
||||
export let current_clients = [];
|
||||
</script>
|
||||
|
||||
<ConfirmScanStationDeletion
|
||||
<ConfirmStatsClientDeletion
|
||||
on:cancelDelete={(event) => {
|
||||
modal_open = false;
|
||||
active_deletes[event.detail.id] = false;
|
||||
@@ -111,9 +111,9 @@
|
||||
class="ml-4 text-indigo-600 hover:text-indigo-900 cursor-pointer">{$_('cancel-delete')}</button>
|
||||
<button
|
||||
on:click={() => {
|
||||
StatsClientService. (s.id, false)
|
||||
StatsClientService.statsClientControllerRemove(c.id, false)
|
||||
.then((resp) => {
|
||||
current_clients = current_clients.filter((obj) => obj.id !== s.id);
|
||||
current_clients = current_clients.filter((obj) => obj.id !== c.id);
|
||||
Toastify({
|
||||
text: $_('statsclient-deleted'),
|
||||
duration: 500,
|
||||
|
||||
Reference in New Issue
Block a user