diff --git a/package-lock.json b/package-lock.json index a71411a..8c54bbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "@rollup/plugin-node-resolve": "11.2.0", "autoprefixer": "10.2.5", "postcss": "8.2.8", - "rollup": "2.41.5", + "rollup": "^2.41.5", "rollup-plugin-livereload": "2.0.0", "rollup-plugin-svelte": "7.1.0", "rollup-plugin-terser": "7.0.2", diff --git a/package.json b/package.json index afe8f99..7751bcc 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@rollup/plugin-node-resolve": "11.2.0", "autoprefixer": "10.2.5", "postcss": "8.2.8", - "rollup": "2.41.5", + "rollup": "^2.41.5", "rollup-plugin-livereload": "2.0.0", "rollup-plugin-svelte": "7.1.0", "rollup-plugin-terser": "7.0.2", diff --git a/src/components/Cards/CardWGControl.svelte b/src/components/Cards/CardWGControl.svelte index 0f16d0e..9dbf5ef 100644 --- a/src/components/Cards/CardWGControl.svelte +++ b/src/components/Cards/CardWGControl.svelte @@ -5,16 +5,22 @@ import CardWGFilter from "components/Cards/CardWGFilter.svelte"; import Modal from "components/Modals/Modals.svelte" import CardWGControl from "components/Cards/CardWGControl.svelte"; - + + export let filter; let showModal = false; let showFilter = false; - export let filter = null; - let submitFilter = null; + let submitFilter = ""; + + + filter = submitFilter; + + $: submitFilter != ""? + filter = submitFilter : filter = ""; function toggleModal(){ showModal = !showModal; - showFilter = false; + showFilter = false; console.log("Modal..."); } @@ -24,19 +30,12 @@ function toggleFilter(){ showFilter = !showFilter; - showModal = false; - filter = submitFilter; + showModal = false; console.log("toggle Filter..."); console.log(filter); } - function getwgResponse(param) { - const wgResponse = fetch( - '/api2/wgClients?filter='+param - ); - return wgResponse; - } @@ -126,7 +125,7 @@ class="relative flex flex-col min-w-0 break-words w-full mb-6 shadow-lg rounded-lg bg-blueGray-100 border-0" >