1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 14:14:05 +00:00

Preserve state between tabs (cc #37) (fixes #56)

This commit is contained in:
2023-07-08 13:07:55 +02:00
parent 64fb9ed173
commit 5476df5fe9
12 changed files with 106 additions and 110 deletions

View File

@ -11,9 +11,9 @@
import { convertLooseJson } from '$lib/strings';
import { FindItems, RemoveItemById, UpdateFoundDocument } from '$wails/go/app/App';
import { EJSON } from 'bson';
import { onMount } from 'svelte';
export let collection;
export let visible = false;
const defaults = {
query: '{}',
@ -42,7 +42,7 @@
}
async function submitQuery() {
if (querying) {
if (querying || !visible) {
return;
}
@ -159,7 +159,7 @@
}
$: collection && refresh();
onMount(refresh);
$: visible && refresh();
</script>
<div class="find">