fix: unexpected/ missing props
This commit is contained in:
parent
5468766d87
commit
d803f3d490
@ -2,7 +2,7 @@
|
||||
import { _ } from "svelte-i18n";
|
||||
import { clickOutside } from "../base/outsideclick";
|
||||
|
||||
export let modal_open;
|
||||
let modal_open = false;
|
||||
(function () {
|
||||
document.onkeydown = function (e) {
|
||||
e = e || window.event;
|
||||
|
@ -1,8 +1,8 @@
|
||||
<script>
|
||||
import { _ } from "svelte-i18n";
|
||||
|
||||
export let detailsLink;
|
||||
export let detailsAction;
|
||||
export let detailsLink = null;
|
||||
export let detailsAction = null;
|
||||
export let deleteEnabled;
|
||||
export let deleteAction;
|
||||
</script>
|
||||
|
@ -5,14 +5,14 @@
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import toast from "svelte-french-toast";
|
||||
export let modal_open;
|
||||
export let delete_station;
|
||||
export let delete_client;
|
||||
const dispatch = createEventDispatcher();
|
||||
function cancelDelete() {
|
||||
modal_open = false;
|
||||
dispatch("cancelDelete", { id: delete_station.id });
|
||||
dispatch("cancelDelete", { id: delete_client.id });
|
||||
}
|
||||
function deleteClient() {
|
||||
StatsClientService.statsClientControllerRemove(delete_station.id, true)
|
||||
StatsClientService.statsClientControllerRemove(delete_client.id, true)
|
||||
.then((resp) => {
|
||||
toast($_("statsclient-deleted"));
|
||||
location.replace("./");
|
||||
|
@ -25,12 +25,7 @@
|
||||
{$_("create-a-new-statsclient")}
|
||||
</button>
|
||||
{/if}
|
||||
<StatsClientsOverview
|
||||
bind:current_clients
|
||||
bind:modal_open
|
||||
bind:new_client
|
||||
bind:copy_modal_open
|
||||
/>
|
||||
<StatsClientsOverview bind:current_clients />
|
||||
</section>
|
||||
|
||||
{#if store.state.jwtinfo.userdetails.permissions.includes("STATSCLIENT:CREATE")}
|
||||
|
Loading…
x
Reference in New Issue
Block a user